Skip to content

Commit 8783579

Browse files
committed
Switch linting to only happen for a single Python version
1 parent 08285e2 commit 8783579

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,21 @@ jobs:
1717
env: PYVER=py38
1818
- python: 3.9
1919
env: PYVER=py39
20-
- python: 3.8
20+
# Separate job for tasks which should only run once per build.
21+
- python: 3.9
2122
install:
22-
- pip install poetry
23-
- poetry install
23+
- pip install poetry tox
2424
- nvm install
2525
- npm install --no-optional --no-audit --progress=false
26+
- poetry install
2627
script:
28+
# Python linting.
29+
- tox -e lint
30+
# Docs website build.
2731
- poetry run mkdocs build
28-
- npm run build
32+
# Package build, incl. publishing an experimental pre-release via GitHub Pages for builds on `master`.
2933
- cat pyproject.toml| awk '{sub(/^version = .+/,"version = \"0.0.0.dev\"")}1' > pyproject.toml.tmp && mv pyproject.toml.tmp pyproject.toml
34+
- npm run build
3035
- poetry build
3136
- cp -R dist site
3237
deploy:
@@ -39,7 +44,6 @@ jobs:
3944
install:
4045
- pip install poetry tox
4146
script:
42-
- tox -e lint
4347
- tox -e $(tox -l | grep ${PYVER} | xargs echo | sed 's/ /,/g')
4448
branches:
4549
except:

0 commit comments

Comments
 (0)