-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from jayvdb/use-travis-template
🎨 Use travis template
- Loading branch information
Showing
8 changed files
with
141 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends 'travis.yml.jj2' %} | ||
|
||
{% block custom_python_versions %} | ||
python: | ||
- 3.7 | ||
- 2.7 | ||
{% endblock %} | ||
|
||
{% block extra_jobs %} | ||
allow_failures: | ||
- stage: test | ||
{% endblock %} | ||
|
||
{% block before_script %} | ||
before_script: | ||
- find templates/ -type f -name '*.jj2' -exec echo '{}' \; |{% raw %} | ||
sed -e "s/templates\//{%include \"/" -e "s/$/\" %}/" > test.file | ||
{% endraw %} | ||
{% endblock %} | ||
|
||
{% block script %} | ||
- moban -c config/data.yml -t test.file -td templates . | ||
- {{ test_command }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
all: upstreaming | ||
|
||
upstreaming: | ||
moban -m mobanfile | ||
|
||
git-diff-check: | ||
git diff | ||
git diff --ignore-blank-lines | while read line; do if [ "$line" ]; then exit 1; fi; done | ||
|
||
lint: flake8 . --exclude=.moban.d,docs --builtins=unicode,xrange,long | ||
install_test: | ||
pip install -r tests/requirements.txt | ||
|
||
lint: | ||
flake8 . --exclude=.moban.d,docs --builtins=unicode,xrange,long | ||
yamllint . | ||
|
||
push: | ||
git config user.email "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
codecov | ||
moban>=0.0.4 | ||
pytest~=3.6.1 | ||
flake8 | ||
yamllint |