-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 884 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
language: python
env:
- build=0
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
- conda info -a
install:
- conda env create --file resources/environment.yml -n test-env
- conda install -n test-env --yes flake8 nose coveralls
- source activate test-env
- pip install -e .
script:
- source activate test-env
# mohawk has some downloads it does on first import, run this first to isolate them from unit tests
- python -c "import mohawk"
# run unit tests (try multiple times in case of url timeout error)
- travis_retry nosetests -v mohawk --with-coverage --cover-package=mohawk
# lint
- flake8 mohawk/ setup.py scripts/mohawk
- mohawk
after_success:
- coveralls