forked from openPMD/openPMD-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (43 loc) · 1.36 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
# Initially borrowed from here: https://gist.github.com/dan-blanchard/7045057
# The validity of this file can be checked here: http://lint.travis-ci.org/
language: python
sudo: false
matrix:
include:
- os: linux
python: "2.7"
- os: linux
python: "3.4"
- os: linux
python: "3.5"
- os: linux
python: "3.6"
before_install:
# Setup anaconda
- if [ $TRAVIS_OS_NAME == "osx" ]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
- if [ $TRAVIS_OS_NAME == "linux" ]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- 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
# Install packages
install:
- conda install --yes cython numpy scipy h5py
- pip install matplotlib
- python setup.py install
- pip install wget
- pip install pyflakes pep8 jupyter
before_script :
# static code analysis
# pyflakes: mainly warnings, unused code, etc.
- python -m pyflakes opmd_viewer
# pep8: style only, enforce PEP 8
- python -m pep8 --ignore=E201,E202,E122,E127,E128,E131 opmd_viewer
script:
- "python setup.py test"