-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
37 lines (33 loc) · 1.25 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
language: python
sudo: false
matrix:
include:
- python: "3.5"
env: DEPS="numpy nose six pytables matplotlib pytest pytest-cov scipy"
- python: "2.7"
env: DEPS="numpy nose six pytables matplotlib pytest pytest-cov scipy"
install:
- wget http://repo.continuum.io/miniconda/Miniconda${TRAVIS_PYTHON_VERSION:0:1}-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda${TRAVIS_PYTHON_VERSION:0:1}/bin:$PATH
# See: https://groups.google.com/a/continuum.io/forum/#!topic/conda/RSFENqovnro
- conda update --yes --no-deps conda
- pip install enum34
# Out of date, needs quick fixing for build.
- conda install --yes sip
- conda update --yes sip
- conda config --set always_yes yes --set changeps1 no
# Learned the hard way: miniconda is not always up-to-date with conda.
- conda update --yes conda
- conda install --yes -c conda conda-env
- conda install --yes $DEPS pip python=${TRAVIS_PYTHON_VERSION}
- pip install coveralls periodictable
- python setup.py install
- cd ~/
- pwd
# command to run tests
script:
- python -c "import opacplot2.tests as opt; opt.run_cli(coverage=True)"
#after_success:
# coveralls