Skip to content

Commit

Permalink
Add data test and cron conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
matgrioni committed Oct 20, 2020
1 parent e38ce7c commit f057e41
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
19 changes: 18 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
stage: unittest
if: env(TRAVIS_EVENT_TYPE) != cron
os: linux
dist: xenial
language: python
python:
Expand All @@ -17,15 +19,30 @@ after_success:

jobs:
- stage: inttest
if: branch = master
if: branch = master AND env(TRAVIS_EVENT_TYPE) != cron
os: linux
dist: xenial
language: python
python: 3.5
install:
- pip install -r requirements.txt
script:
- travis_wait 30 make inttest

- stage: datatest
if: env(TRAVIS_EVENT_TYPE) = cron
os: linux
dist: xenial
language: python
python: 3.5
install:
- pip install -r requirements.txt
script:
- travis_wait 180 make datatest

- stage: lint
if: env(TRAVIS_EVENT_TYPE) != cron
os: linux
dist: xenial
language: python
python: 3.5
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ test:
coveragetest:
coverage run --source pyconll -m pytest --ignore tests/int

# Integration test scenario into the development branch.
# Integration test scenario for releases validation and support.
inttest:
python -m pytest tests/int/test_corpora.py::test_ud_v2_6_data --log-cli-level info

# Data test scenario across all supported data sets; heavy
# Data test scenario across all supported data sets to be run periodically.
datatest:
python -m pytest tests/int --log-cli-level info

Expand Down

0 comments on commit f057e41

Please sign in to comment.