-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
75 lines (69 loc) · 2.27 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
language: python
# The following two lines force deploy on the latest Trusty Tapir build platforms
# sudo: required
# dist: trusty
sudo: false
cache:
apt: true
notifications:
email: false
# Borrowing schema from https://github.com/pydata/xarray/
matrix:
include:
- python: 2.7
env: CONDA_ENV=py27
- python: 3.5
env: CONDA_ENV=py35
- python: 3.6
env: CONDA_ENV=py36
# Packages to install into test linux environment
#addons:
# apt:
# packages:
# - liblapack-dev
# - libsundials-serial-dev
# - gfortran
# command to install dependencies (adapted from jakevdp/supersmoother)
# using miniconda
before_install:
# - sudo apt-get update
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O
miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O
miniconda.sh;
fi
- 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
# For debugging conda
- conda info -a
install:
- conda env create --file ci/requirements-$CONDA_ENV.yml
- source activate pyrcel
# Build and install assimulo. If Python 3.5, we have to do this by hand
# else we can rely on the existing conda package
# - if [[ "$CONDA_ENV" == "py35" ]]; then
# wget https://trac.jmodelica.org/assimulo/export/822/releases/Assimulo-2.8b1-fix.zip;
# unzip Assimulo-2.8b1-fix.zip;
# cd Assimulo-2.8b1;
# python setup.py install --sundials-home=/usr --lapack-home=/usr/lib;
# else
# conda install -c https://conda.binstar.org/chria assimulo;
# fi
# - wget https://trac.jmodelica.org/assimulo/export/822/releases/Assimulo-2.8b1-fix.zip
# - unzip Assimulo-2.8b1-fix.zip
# - cd Assimulo-2.8b1
# - python setup.py install --sundials-home=/usr --lapack-home=/usr/lib
# - cd ../
# Done! Can now move on to the parcel model
- pip install -e .
script:
# Automated testing will go here
- echo "Executing test simulation, 'simple'"
- run_parcel examples/simple.yml
- echo "Simple test executed sucessfully."
- echo "Done"