forked from openPMD/openPMD-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.22 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
# 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: osx
language: cpp
env: TRAVIS_PYTHON_VERSION=2.7
# Setup anaconda
before_install:
- 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
# Install packages
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION --file requirements.txt
- 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 .
# pep8: style only, enforce PEP 8
- python -m pep8 --ignore=E201,E202,E122,E127,E128,E131 .
script:
- "python setup.py test"