forked from StatsHelix/demoinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
21 lines (21 loc) · 986 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: csharp
solution: DemoInfo.sln
before_install:
- sudo apt-get update -qq
install:
- sudo apt-get install -y mono-profiler python-pip
- sudo pip install --upgrade requests
before_script:
- git clone 'https://github.com/main--/demoinfo-testdata.git' testdemos
- "[ \"$TRAVIS_PULL_REQUEST\" = \"true\" ] || bash ci/nuget_set_api_key.sh"
script:
- nuget restore DemoInfo.sln
- xbuild /p:Configuration=Bitstream-Debugging DemoInfo.sln
- xbuild /p:Configuration=Release DemoInfo.sln
- mono packages/NUnit.Runners.2.6.4/tools/nunit-console.exe -noxml -nodots -labels Testing/bin/Release/Testing.dll
- python ci/brofiler.py verify
- python ci/brofiler.py run
after_success:
- "[ \"$TRAVIS_PULL_REQUEST\" = \"true\" ] || [ \"$TRAVIS_BRANCH\" != \"master\" ] || sed -i \"s/<\\/version>/-ci$(date +%s)-$(git rev-parse --short HEAD)<\\/version>/\" DemoInfo.nuspec && nuget pack DemoInfo.nuspec && nuget push *.nupkg"
after_script:
- python ci/brofiler.py cleanup