-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (36 loc) · 1.12 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
language: python
python:
- "2.7"
- "3.4"
before_install:
# download miniconda (for Python 2 or Python 3)
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
# install miniconda
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
# update conda package manager
- conda update --yes conda
# create virtual environment
- conda create -n testenv --yes --file requirements.txt python=$TRAVIS_PYTHON_VERSION
# activate environment
- source activate testenv
# install test tools
- conda install --yes pytest
- pip install -r requirements-test.txt
- pip install coveralls
# debugging info
- echo $PATH
- which python
- which pip
- which py.test
- python --version
- conda info
- conda list
install:
# install package
- python setup.py install
script:
- py.test
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then coveralls; fi