-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
74 lines (62 loc) · 1.52 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
#env:
# global:
# - CONDA_PREFIX=$HOME/miniconda
# - MINICONDA_URL_BASE="https://repo.continuum.io/miniconda/Miniconda3-latest"
sudo: false
language: python
os: linux
python:
- 2.7.15
- 3.6
#matrix:
# include:
# - os: linux
# python: 2.7.15
# - os: linux
# python: 3.6
# - os: osx
# language: generic
# env: PYTHON=2.7
# - os: osx
# language: generic
# env: PYTHON=3.6
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl $MINICONDA_URL_BASE-MacOSX-x86_64.sh > $HOME/miniconda.sh
bash $HOME/miniconda.sh -b -p $CONDA_PREFIX
export PATH="$CONDA_PREFIX/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update conda -y
conda create -n pyenv python=$PYTHON anaconda
source activate pyenv
else
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
fi
- pip install --upgrade setuptools
- pip install --upgrade pip
- pip install pycodestyle
install:
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
echo "Build on $TRAVIS_OS_NAME for Python $PYTHON"
else
echo "Build on $TRAVIS_OS_NAME for Python $TRAVIS_PYTHON_VERSION"
fi
- python --version
- pip install -e .[extras]
- pip install codecov
script:
- coverage run -m unittest discover
after_success:
- codecov
jobs:
allow_failures:
- stage: pep8
include:
- stage: pep8
python: 3.6
script: pycodestyle ./ --ignore=E402,W
after_success: skip