forked from skycoin/pyskycoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
93 lines (87 loc) · 2.69 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# this file is *not* meant to cover or endorse the use of travis, but rather to
# help confirm pull requests to this project.
matrix:
include:
- os: linux
language: python
python: 2.7
env:
- TOXENV=py27
- PYTHON=2.7
- os: linux
language: python
python: 3.4
env:
- TOXENV=py34
- PYTHON=3.4
- os: linux
language: python
python: 3.5
env:
- TOXENV=py35
- PYTHON=3.5
- os: linux
language: python
python: 3.6
env:
- TOXENV=py36
- PYTHON=3.6
- os: linux
language: python
dist: xenial
python: 3.7
sudo: true
env:
- TOXENV=py37
- PYTHON=3.7
- os: osx
languague: generic
env:
- PYTHON=2.7
- TOXENV=py27
- os: osx
languague: generic
env:
- PYTHON=3.4.8
- TOXENV=py34
- os: osx
languague: generic
env:
- PYTHON=3.5.5
- TOXENV=py35
- os: osx
languague: generic
env:
- PYTHON=3.6.5
- TOXENV=py36
- os: osx
languague: generic
env:
- PYTHON=3.7.1
- TOXENV=py37
before_install:
# Sync to develop branch
# FIXME: Checkout skycoin/skycoin:master
- cd gopath/src/github.com/skycoin/skycoin && git checkout develop && cd ${TRAVIS_BUILD_DIR}
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then bash ./.travis/install-linux.sh ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then bash ./.travis/install-osx.sh; fi
# Setup environment and PATH in MacOS
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export PYCMD_VERSION="$(echo ${PYTHON} | cut -d . -f 1,2)" ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export PYCMD_PATH="$(pyenv which python${PYCMD_VERSION})" ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export PYCMD_DIRPATH="$( dirname ${PYCMD_PATH} )" ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export PATH="${PYCMD_DIRPATH}:/Users/travis/.pyenv/shims:${PATH}" ; fi
# Define command aliases
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then eval "alias python${PYCMD_VERSION}=$(pyenv which python${PYCMD_VERSION})" && eval "alias python2.7=$(pyenv which python2.7)"; fi
# Print system env info
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pyenv versions ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pyenv which python${PYCMD_VERSION} ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then eval "python${PYCMD_VERSION} --version" ; fi
- echo "PATH=$PATH"
install:
- eval "$(gimme 1.10)"
after_failure:
- cat ./.tox/${TOXENV}/log/${TOXENV}-*.log
script: make test-ci
notifications:
email: false
webhooks: https://fathomless-fjord-24024.herokuapp.com/notify