forked from Revenue-Academy/Training_Tax_Microsimulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (24 loc) · 770 Bytes
/
.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
sudo: false
language: python
python:
- "3.6"
install:
# Install conda
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- conda create -n taxcalc-dev python=$TRAVIS_PYTHON_VERSION;
- source activate taxcalc-dev
- conda env update -f environment.yml
- pip install pyyaml
- pip install pytest-pep8
- pip install coverage
- pip install codecov
- python setup.py install
# command to run tests
script:
- python -c "import taxcalc"; coverage run -m pytest -v -m "not local" --pep8
after_success:
- codecov