-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
77 lines (75 loc) · 1.76 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
language: python
sudo: false
cache: pip
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- SEGFAULT_SIGNALS=all
- MARIO_TESTING_IGNORE_TIMER=1
jobs:
include:
- python: '3.7'
dist: xenial
sudo: required
env:
- TOXENV=coverage,codecov
- python: '3.7'
dist: xenial
sudo: required
env:
- TOXENV=check
- python: '3.7'
dist: xenial
sudo: required
env:
- TOXENV=doc
- stage: Bump version and push into master.
if: branch = release
python: 3.7
dist: xenial
sudo: required
deploy:
on:
branch: release
provider: script
script: bash ci/bump_and_release.bash
before_install:
- python --version
- uname -a
- lsb_release -a
install:
- pip install 'tox<4.0.0' 'poetry>=1.0.0b1'
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
- |
set -ex
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then
(cd $HOME
wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v6.0.0-linux64.tar.bz2
tar xf pypy2-*.tar.bz2
pypy2-*/bin/pypy -m ensurepip
pypy2-*/bin/pypy -m pip install -U virtualenv)
export PATH=$(echo $HOME/pypy2-*/bin):$PATH
export TOXPYTHON=$(echo $HOME/pypy2-*/bin/pypy)
fi
if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then
(cd $HOME
wget https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v7.1.1-linux64.tar.bz2
tar xf pypy3*.tar.bz2
pypy3*/bin/pypy3 -m ensurepip
pypy3*/bin/pypy3 -m pip install -U virtualenv)
export PATH=$(echo $HOME/pypy3*/bin):$PATH
export TOXPYTHON=$(echo $HOME/pypy3*/bin/pypy3)
fi
set +x
script:
- tox -v
after_failure:
- more .tox/log/* | cat
- more .tox/*/log/* | cat
notifications:
email:
on_success: never
on_failure: always