-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
81 lines (76 loc) · 2.03 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
## NOTE: travis CI is currently not used. We use github actions instead.
## See: .github/workflows/main.yml
dist: xenial # required for Python >= 3.7
language: generic
branches:
only:
- master
matrix:
fast_finish: true
include:
- os: osx
python: "3.6"
name: "macOS (Python3.6)"
addons:
homebrew:
packages:
- pandoc
update: true
env:
- CONDA_FN="Miniconda3-latest-MacOSX-x86_64.sh"
- PEP8=false
- DOCS=false
- PYTHON_DESIRED=3.6
- os: linux
name: "Linux (Python3.6 + pep8)"
python: "3.6"
addons:
apt:
packages:
- pandoc
update: true
env:
- CONDA_FN="Miniconda3-latest-Linux-x86_64.sh"
- PEP8=true
- DOCS=false
- PYTHON_DESIRED=3.6
- os: linux
name: "Linux (Python3.7 + docs)"
python: "3.7"
addons:
apt:
packages:
- pandoc
update: true
env:
- CONDA_FN="Miniconda3-latest-Linux-x86_64.sh"
- PEP8=false
- DOCS=true
- PYTHON_DESIRED=3.7
sudo: false
before_install:
# Python 3.x is default
- wget "https://repo.continuum.io/miniconda/$CONDA_FN" -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Prepare env with Python version
- conda create -n birdy python=$PYTHON_DESIRED
install:
# Update now the env with our environment
- conda env update -f environment.yml
- if [[ $DOCS == true ]]; then conda env update -f environment-docs.yml; fi
- source activate birdy
# Packages for testing
- conda install pytest pytest-notebook flake8
# Install Emu WPS
- python setup.py install
script:
- make test
# - make test-nb
- if [[ $PEP8 == true ]]; then flake8 birdy tests; fi
- if [[ $DOCS == true ]]; then make docs; fi