forked from stan-dev/cmdstanpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 877 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
32
33
34
35
36
37
dist: xenial
language: python
python:
- "3.6"
- "3.7"
cache:
directories:
- $HOME/.cmdstanpy
install:
- pip install --quiet -r requirements.txt
- pip install --quiet -r requirements-test.txt
- pip install codecov
# install cmdstanpy
- pip install .
# install cmdstan
- python -m cmdstanpy.install_cmdstan
- python ./scripts/clean_examples.py
after install:
script:
# change dir and use installed version
- mkdir new_dir
- cd new_dir
- flake8 --extend-ignore=E127,E201,E202,E203,E231,E252,E266,E402,E999,F841,W503,W605 --max-line-length=80 ../cmdstanpy ../test
- pylint -v --rcfile=../.pylintrc ../cmdstanpy ../test
- pytest -v ../test --cov=../cmdstanpy
- python -m pip install -r ../requirements-optional.txt
- python ../test/example_script.py
- python ../scripts/clean_examples.py
after_success:
- codecov # submit coverage