-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
36 lines (30 loc) · 835 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
sudo: false
before_install:
# Setup miniconda
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=$HOME/miniconda2/bin:$PATH
# Create a virtual environment with the right version of python
- conda create -n testing python=$TRAVIS_PYTHON_VERSION --yes
- source activate testing
- export CONDA_PREFIX=$HOME/miniconda2/envs/testing/
addons:
apt:
packages:
- gfortran
install:
- conda install --yes -c conda-forge fftw numpy scipy h5py
script:
########################################################
# build
- make
# run examples
- export OMP_NUM_THREADS=4
- export PYTHONPATH=":$PWD/../:$PYTHONPATH"
- python doc/tests/run-all-tests.py