-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.2 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
language: csharp
before_install:
- chmod a+x ./Travis/Scripts/install.sh
- chmod a+x ./Travis/Scripts/build.sh
install:
- ./Travis/Scripts/install.sh
- pip install -r ./MapService/requirements.txt
- pip install -r ./LobbyService/requirements.txt
script:
- if [ $TRAVIS_BRANCH = "master" ]; then travis_wait ./Travis/Scripts/build.sh; fi
- xbuild /p:TargetFrameworkProfile="" /p:Configuration=Release ./SingedFeathers/SingedFeathers.sln
- nunit-console ./SingedFeathers/Temp/bin/Release/Assembly-CSharp-Editor.dll
- "cd ./MapService && PYTHONPATH=service python -m py.test"
- "cd ../LobbyService && PYTHONPATH=service python -m py.test && cd .."
after_success:
- '[ "${TRAVIS_TEST_RESULT}" = "0" ] && [ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] && git push https://${GITHUB_TOKEN}:[email protected]/${TRAVIS_REPO_SLUG}.git HEAD:master'
os: osx
deploy:
provider: s3
access_key_id: $ACCESS_KEY_ID
secret_access_key: $ACCESS_KEY
bucket: "singedfeathers.online"
local-dir: ./SingedFeathers/Builds/Web/
skip_cleanup: true
acl: public_read
region: "us-west-2"
on:
branch: master
notifications:
slack:
rooms:
- whythehellnot:RlQRu5Twg2ZsabMC6K4SL6hu#travis