-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
46 lines (46 loc) · 1.15 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
language: python
python:
- '3.6'
- '2.7'
- '3.5'
- '3.4'
- '3.3'
- '3.2'
- 'pypy'
- 'pypy3'
env:
# robot
GITHUB_TOKEN_P1=7bea5d170ca6f7c162d7
GITHUB_TOKEN_P2=58961507e413df080e9c
sudo: false # Use container-based infrastructure
install: "pip install flake8"
script:
- echo "Doing something..."
- flake8
- echo "Done"
after_success:
- export GITHUB_TOKEN=${GITHUB_TOKEN_P1}${GITHUB_TOKEN_P2}
- python travis_after_all.py
- export $(cat .to_export_back) > /dev/null
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
echo "All jobs succeeded! PUBLISHING..."
else
echo "Some jobs failed"
fi
fi
after_failure:
- export GITHUB_TOKEN=${GITHUB_TOKEN_P1}${GITHUB_TOKEN_P2}
- python travis_after_all.py
- export $(cat .to_export_back) > /dev/null
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then
echo "All jobs failed"
else
echo "Some jobs failed"
fi
fi
after_script:
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS