-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (88 loc) · 2.34 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
language: generic
os:
- linux
- osx
env:
matrix:
- CONDA_ENV=3.8
- CONDA_ENV=3.7
- CONDA_ENV=3.6
global:
- MPLBACKEND=Agg
- secure: exvIFiQjIunvyGXJB27wUskWoXOL/qgu1tLjpgSopZz34WRK7kszqD0fPBLpX7wWgvBuUPYt9tXjdj80gXsouhW/R44AxauRpeAvrcodOwKpFIKM5DOyLmBs+YHQvS1UDJ/n8Lr+n6Q0H36l3pwZC269UKQkpwDwUuGkobeMqXQ=
sudo: false
jobs:
include:
- stage: lint
os: linux
script:
- pip install flake8
- make lint
- stage: docs
os: linux
install:
- pip install -r requirements-docs.txt
- pip install numpy
- pip install -e .
script:
- make -C docs clean html linkcheck
- &deploy
stage: deploy
if: tag =~ v.*$
os: osx
env: CONDA_ENV=3.8
script:
- pip install twine wheel
- python setup.py bdist_wheel
- twine upload -u landlab -p$PYPI_PASS dist/*landlab*
- <<: *deploy
os: osx
env: CONDA_ENV=3.7
- <<: *deploy
os: osx
env: CONDA_ENV=3.6
- <<: *deploy
sudo: required
os: linux
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
PLAT=manylinux1_x86_64
CONDA_ENV=3.7
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE /io/.ci/travis/build_wheels.sh
- ls wheelhouse/
- pip install twine
- twine upload -u landlab -p$PYPI_PASS wheelhouse/*landlab*manylinux*
before_install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew remove --force $(brew list)
brew cleanup -s
rm -rf $(brew --cache)
fi
- |
mkdir -p $HOME/.matplotlib
echo "backend: Agg" > $HOME/.matplotlib/matplotlibrc
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > $HOME/miniconda.sh
else
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh
fi
- bash $HOME/miniconda.sh -b -p $(pwd)/anaconda
- export PATH="$(pwd)/anaconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda create -n test_env python=$CONDA_ENV
- source activate test_env
- conda info -a && conda list
install:
- pip install numpy
- pip install -e .
script:
- pip install -r requirements-testing.txt -r requirements-notebooks.txt
- travis_wait 50 pytest --cov=landlab --cov-report=xml:$(pwd)/coverage.xml --run-notebook -vvv
after_success: coveralls