Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
dist: xenial
dist: bionic
language: python
python: 3.8
stages:
- lint
- test
- test-docs
- deploy

".test_script": &1
script:
- pip install .
- cd tests
- coverage run --include='*/site-packages/jsonpath2/*' --omit='*/site-packages/jsonpath2/parser/JSONPath*' -m pytest -xv
Expand All @@ -19,17 +20,15 @@ install: pip install -r requirements-dev.txt
jobs:
include:
- stage: lint
python: 3.6
script: pre-commit run -a
- python: 3.7
script: pre-commit run -a
- python: 3.6
script: pre-commit run -a
- stage: test
python: 3.6
script: *1
- python: 3.7
script: *1
- python: 3.6
- stage: test-docs
python: 3.7
script:
- pip install .
- cd docs
Expand All @@ -38,7 +37,6 @@ jobs:
- sphinx-build -b latex -D language=en -d _build/doctrees . _build/latex
- sphinx-build -T -b epub -d _build/doctrees-epub -D language=en . _build/epub
- stage: deploy
python: 3.7
script: skip
deploy:
skip_cleanup: true
Expand All @@ -50,7 +48,6 @@ jobs:
on:
tags: true
- script: skip
python: 3.7
before_deploy: python setup.py sdist bdist_wheel
deploy:
provider: releases
Expand Down