forked from Splamy/TS3AudioBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.16 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
sudo: false
language: csharp
notifications:
email: false
branches:
only:
- master
- develop
addons:
apt:
packages:
- zip
- gzip
- tar
- curl
git:
depth: 9999999
install:
- nuget restore TS3AudioBot.sln
- nuget install NUnit.Runners -OutputDirectory nunit
script:
- cfg="/p:Configuration=Release TS3AudioBot.sln"
- if command -v msbuild; then
msbuild $cfg;
elif command -v xbuild; then
xbuild $cfg;
else
echo "No mono build tool found!";
false;
fi
- mono ./nunit/NUnit.ConsoleRunner.*.*.*/tools/nunit3-console.exe ./TS3ABotUnitTests/bin/Release/TS3ABotUnitTests.dll
after_success:
- export MAIN_DIR=`pwd`
- cd ./TS3AudioBot/bin/Release
- ls
- zip TS3AudioBot.zip NLog.config *.exe *.dll x64/* x86/*
- 'export version=`mono TS3AudioBot.exe --version | grep "Version: "`'
- "curl -I -H \"Content-Type: application/zip\" -X PUT \"https://splamy.de/api/nightly/ts3ab/${TRAVIS_BRANCH}?token=${uploadkey}&filename=TS3AudioBot.zip&commit=${TRAVIS_COMMIT}&version=${version:9}\" --upload-file ./TS3AudioBot.zip"
- cd "$MAIN_DIR"
after_script:
- chmod u+x ts3notify.sh
- ./ts3notify.sh