Skip to content

Commit

Permalink
Add vendoring target to heck that vendoring is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Oct 10, 2019
1 parent 0cb85d5 commit c30bfa5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- stage: primary
env: TOXENV=docs
- env: TOXENV=lint
- env: TOXENV=vendoring
# Latest CPython
- env: GROUP=1
python: 2.7
Expand Down
14 changes: 13 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 3.4.0
envlist =
docs, packaging, lint,
docs, packaging, lint, vendoring,
py27, py35, py36, py37, py38, pypy, pypy3

[helpers]
Expand Down Expand Up @@ -46,3 +46,15 @@ commands_pre =
deps = pre-commit
commands =
pre-commit run [] --all-files --show-diff-on-failure

[testenv:vendoring]
skip_install = True
commands_pre =
deps =
invoke
requests
whitelist_externals = git
commands =
# Check that the vendoring is up-to-date
invoke vendoring.update
git diff --exit-code

0 comments on commit c30bfa5

Please sign in to comment.