forked from yt-project/unyt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (38 loc) · 994 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
32
33
34
35
36
37
38
39
40
41
42
43
# Config file for automatic testing at travis-ci.org
sudo: true
dist: xenial
cache:
pip: true
directories:
- $HOME/.pyenv_cache
- $HOME/.pyenv
matrix:
include:
- os: osx
language: generic
- os: linux
language: python
before_install:
- export PYTHON_BUILD_CACHE_PATH="$HOME/.pyenv_cache"
- rm -rf /opt/pyenv
- |
if [ ! -d $HOME/.pyenv/.git ]; then
git clone https://github.com/pyenv/pyenv.git $HOME/.pyenv
else
pushd $HOME/.pyenv
git pull https://github.com/pyenv/pyenv.git
popd
fi
- export PYENV_ROOT="$HOME/.pyenv"
- export PATH="$HOME/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv install -s 3.5.7
- pyenv install -s 3.6.9
- pyenv install -s 3.7.5
- pyenv install -s 3.8.0
- pyenv local 3.5.7 3.6.9 3.7.5 3.8.0
- pip install "coverage<5.0"
- pip install tox tox-pyenv codecov twine
# Command to run tests, e.g. python setup.py test
script: tox -vvv
after_success: codecov