forked from fbpic/fbpic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (28 loc) · 879 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
# Borrowed from here: https://gist.github.com/dan-blanchard/7045057
# The validity of this file can be checked here: http://lint.travis-ci.org/
sudo: false
dist: precise
language: python
python:
- "2.7"
- "3.6"
before_install:
# Setup miniconda
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=$HOME/miniconda3/bin:$PATH
# Create a virtual environment with the right version of python
- conda create -n testing python=$TRAVIS_PYTHON_VERSION --yes
- source activate testing
# Install packages
install:
- conda install --yes numba scipy h5py mkl
- conda install --yes -c conda-forge mpi4py
- pip install pyflakes
- python setup.py install
before_script:
- python -m pyflakes .
- pip install openPMD-viewer
script:
- "python setup.py test"