-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
41 lines (33 loc) · 1.2 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
# config file for automatic testing at travis-cli.org
sudo: false
language: python
python:
- "2.7"
- "3.5"
install:
# update periodically - saves downloading if version is the same
- if [[ "${TRAVIS_PYTHON_VERSION}" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-3.8.3-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p "${HOME}/miniconda"
- export PATH="${HOME}/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# useful for debugging any issues with conda
- conda info -a
# create a new conda env
- conda create -q -n test-environment --file requirements/conda.txt python=$TRAVIS_PYTHON_VERSION sphinx pytest flake8 coverage
- source activate test-environment
# install (the rest of the) dependencies
- pip install -r requirements/dev.txt
# install your own package + executables
- python setup.py install
- conda install setuptools=18.3
script:
# command to run tests and collect test coverage
- coverage run --source chanjo_report setup.py test
after_success:
coveralls