Skip to content

Commit

Permalink
travis.yml: Fix the stages
Browse files Browse the repository at this point in the history
  • Loading branch information
KVGarg committed Jul 4, 2020
1 parent 857132f commit 2f88470
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
23 changes: 13 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
language: python
python: 3.6.3

cache:
pip: true
cache: false

stages:
- test
- moban
- name: deploy
if: type != pull_request

.moban: &moban
python: 3.6
stage: moban
install: pip install moban~=0.5.0 gitfs2 pypifs
script:
- moban
- git diff --exit-code

env:
global:
- ENCRYPTION_LABEL: "defac9b1fa56"
Expand All @@ -25,13 +32,9 @@ jobs:
# A proper build with the tokens available
- stage: deploy
after_success: ./.ci/deploy.sh
- python: 3.6
stage: moban
env:
before_install: false
install: pip install moban
script: .ci/check_moban.sh
after_success: false
- *moban
allow_failures:
- *moban

before_install:
- printf '%s\n'
Expand All @@ -43,7 +46,7 @@ script:
- ./.ci/build.sh
- rm -rf private/
- pytest
- coala --non-interactive -V
- coala --flush-cache --non-interactive -V

notifications:
email: false
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ addopts =
--color=yes
--doctest-glob=*.rst
--doctest-modules
--doctest-ignore-import-error
--doctest-ignore-import-errors
--error-for-skips
--cov
--instafail
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ codecov~=2.0.5
moban~=0.5.0 ; python_version > '3.0'
packaging~=16.8
pytest~=3.6.4
pytest-cov~=2.4
pytest-cov==2.4
pytest-django~=3.3.3
pytest-env~=0.6.0
pytest-error-for-skips~=1.0
Expand Down

0 comments on commit 2f88470

Please sign in to comment.