forked from OceanParcels/Parcels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 947 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
notifications:
email: false
language: python
python:
- "2.7"
# - "3.4"
sudo: false
before_install:
# Setup anaconda
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
install:
- conda env create --file environment.yml
- source activate py2_parcels
- conda install --yes python=$TRAVIS_PYTHON_VERSION sphinx
- pip install -e .
before_script: # configure a headless display to test plot generation
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- flake8 parcels
- flake8 tests
- flake8 examples
- python parcels/scripts/pull_data.py
- py.test -v -s tests/
- py.test -v -s --nbval-lax examples/
- make linkcheck -C docs