-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (58 loc) · 2.19 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
51
52
53
54
55
56
57
58
59
60
61
62
63
language: python
sudo: false
branches:
only:
- master
matrix:
include:
- os: linux
python: "2.6"
- os: linux
python: "2.7"
- os: linux
python: "3.3"
- os: linux
python: "3.4"
- os: linux
python: "3.5"
- os: linux
python: "3.6"
- os: linux
python: "3.5-dev" # 3.5 development branch
- os: linux
python: "3.6-dev" # 3.6 development branch
- os: linux
python: "3.7-dev"
- os: linux
python: "nightly" # currently points to 3.6-dev
- os: osx
osx_image: xcode7.2
language: generic
- os: osx
osx_image: xcode8.3
language: generic
before_install:
- if [ $TRAVIS_OS_NAME == osx ] ; then travis_wait brew upgrade || travis_retry brew upgrade || true ; fi
- if [ $TRAVIS_OS_NAME == osx ] ; then travis_wait brew install python3 $INSTALL || true ; fi
- if [ $TRAVIS_OS_NAME == osx ] ; then brew install coverage $INSTALL || true ; fi
- if [ $TRAVIS_OS_NAME == osx ] ; then brew install codecov $INSTALL || true ; fi
- travis_retry pip install tox || pip install tox || true ;
- travis_retry pip install coverage || true ;
- travis_retry pip install codecov || true ;
- travis_retry python -m pip install coverage || python -m pip install coverage || true ;
- travis_retry python -m pip install codecov || python -m pip install codecov || true ;
- travis_retry python3 -m pip install tox || python3 -m pip install tox || true ;
- travis_retry python3 -m pip install coverage || python3 -m pip install coverage || true ;
- travis_retry python3 -m pip install codecov || python3 -m pip install codecov || true ;
- travis_retry python3 -m pip install -r requirements.txt || python3 -m pip install -r requirements.txt || true ;
install: "make init"
# command to run tests
script:
- make clean ;
- make test
- if [ $TRAVIS_OS_NAME == osx ] ; then echo "SKIP codecov" ; else codecov || exit $? ; fi ;
- make clean || exit $? ;
after_success:
- codecov || true
- if [ $TRAVIS_OS_NAME == osx ] ; then true ; wait ; else coverage run -p -m piaplib.pocket pku upgrade --upgrade-all || true ; wait ; codecov || true ; fi ; wait ;
- if [ $TRAVIS_OS_NAME == osx ] ; then echo "SKIP codecov" ; else codecov || exit $? ; fi ;