forked from gridsingularity/gsy-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (29 loc) · 902 Bytes
/
.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
sudo: false
dist: trusty
language: python
branches:
only:
- master
- production
jobs:
include:
- python: 3.6
env: TOXENV=travis
install: pip install tox
script: tox -e $TOXENV
after_script: rm -rf ./.tox
# this is to trigger a new build of d3a-web for every push to master or production
- python: 3.6
stage: trigger downstream
jdk: oraclejdk8
script: |
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
if [[ (($TRAVIS_BRANCH == master) || ($TRAVIS_BRANCH == production)) &&
($TRAVIS_PULL_REQUEST == false) ]] ; then
curl -LO --retry 3 https://raw.github.com/mernst/plume-lib/master/bin/trigger-travis.sh
sh trigger-travis.sh --pro --branch $TRAVIS_BRANCH gridsingularity d3a-web $TRAVIS_ACCESS_TOKEN
fi
notifications:
email:
recipients: