forked from PSLmodels/Tax-Calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (25 loc) · 842 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
30
sudo: false
language: python
python:
- "3.6"
- "2.7"
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
- if [ $TRAVIS_EVENT_TYPE == 'cron' ]; then conda remove numba; fi
- 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 py.test -v -m "not requires_pufcsv and not pre_release and not local" --pep8
after_success:
- codecov