forked from okta/okta-sdk-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (43 loc) · 1.23 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
language: csharp
mono: 6.6.0 # Use specific mono version due to a cake failure: https://github.com/cake-build/cake/issues/2695
sudo: required
dist: xenial
dotnet: 3.1
addons:
apt:
packages:
- dotnet-sdk-2.2
script:
- if [[ $TRAVIS_EVENT_TYPE = 'push' ]]; then
./build.sh --target DefaultIT;
else
./build.sh;
fi
- if [[ $DEPLOY_DOCS = true && ($TRAVIS_PULL_REQUEST = false && $TRAVIS_BRANCH = master || "$TRAVIS_TAG" != "") ]]; then
./build.sh --target Docs;
fi
deploy:
- provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
local_dir: docs/temp
email: [email protected]
name: ".NET Deployment Bot"
on:
condition: "$DEPLOY_DOCS = true"
tags: true
- provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
local_dir: docs/temp
email: [email protected]
name: ".NET Deployment Bot"
on:
condition: "$DEPLOY_DOCS = true && $TRAVIS_PULL_REQUEST = false"
branch: master
notifications:
slack:
if: type = cron
secure: cLvrcIznO1QFFVe4lIav+4rVqB2nlpHswKDYplOGlDJ1s1KXYDwoqigFMN+mWmOkCcDUI1Bls/R1zfNWCAupIVRbj4eMREoQkwpVi+wVv5xQ/T5bYqVQMKqL6BGoodjnxkHzz7NbNNejYQbFtNkCvyC1Rl28VbiJIMZkh4wLNbI=
on_success: never
on_failure: always