Skip to content

Commit

Permalink
👕 update travis yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Nov 12, 2019
1 parent d1e4e51 commit 88f7276
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .moban.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ targets:
- README.rst: custom_README.rst.jj2
- setup.py: setup.py
- "docs/source/conf.py": "docs/source/conf.py.jj2"
- .travis.yml: travis.yml
- .travis.yml: custom_travis.yml.jj2
- MANIFEST.in: MANIFEST.in.jj2
- .gitignore: gitignore.jj2
- "tests/requirements.txt": "tests/requirements.txt"
Expand Down
72 changes: 69 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
{% extends "travis.yml.jj2" %}
sudo: false
dist: xenial
language: python
notifications:
email: false
python:
- &pypy2 pypy2.7-6.0
- &pypy3 pypy3.5-6.0
- 3.8-dev
- 3.7
- 3.6
- 3.5
- 2.7

{%block custom_install %} - if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install ordereddict; fi
stages:
- lint
- moban
- test

.disable_global: &disable_global
addons: false
cache: false
env: {}
python: false
before_install: false
install: false
before_script: false
script: false
after_success: false
after_failure: false
before_deploy: false
deploy: false

.lint: &lint
<<: *disable_global
git:
submodules: false
python: 3.6
stage: lint
script: make lint

.moban: &moban
<<: *disable_global
python: 3.6
stage: moban
install: pip install moban>=0.0.4
script:
- moban
- git diff --exit-code

jobs:
include:
- *moban
- *lint

stage: test

before_install:
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install ordereddict; fi
- pip install --upgrade pip>8 setuptools>21
{%endblock%}
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
mv min_requirements.txt requirements.txt ;
fi
- test ! -f rnd_requirements.txt ||
pip install --no-deps -r rnd_requirements.txt
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
- pip install -r tests/requirements.txt
script:
- make test
after_success:
codecov

0 comments on commit 88f7276

Please sign in to comment.