forked from PSLmodels/Tax-Calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (26 loc) · 846 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
31
sudo: false
language: python
python:
- "3.5"
- "3.4"
- "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, e.g. python setup.py test
script:
- python -c "import taxcalc"; coverage run -m py.test -v -m "not requires_pufcsv" --pep8
after_success:
- codecov