-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
23 lines (23 loc) · 1.07 KB
/
.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
sudo: false
language: python
cache: pip
env:
# LEGIFRANCE_PROXY
- secure: cBUPoyvuladriq6siwwR7o54TSGImtUC5wRkGxHLfH14e2jUNPlOPmWufqP/r3nJg7y6iPeJVRY7NT4nOWQ5B5Skh8gxTa8ORtluwaQTGtbyrFejvLVRfMRxIzsskshodkmv3virkBvwQvsLIAWHAjb8yffYNQD1D1B3Sti6iuc=
install:
- pip install -e .
- pip install -r test_requirements.txt
script:
- set -e # exit on first fail: see https://github.com/travis-ci/travis-ci/issues/1066
- flake8 --ignore=E501,F405,F403,F401,F841 --select=F,E999 --exclude=deprecated . # mainly detect undefined variables and syntax errors
- python tlfp/tools/update_procedure.py
- python tlfp/tools/sort_articles.py
- python tests/test_parse_texte.py
- python tests/test_parse_texte_plf.py
- python tests/test_parse_annexes.py
- python -m doctest tlfp/tools/compute_stats.py
- # python tests/test_complete_articles.py # not yet passing
- python tests/test_steps.py
- git clone https://github.com/regardscitoyens/the-law-factory-parser-test-cases.git tests_cases
- python tests/test_regressions.py tests_cases
- set +e