Skip to content

Commit 1650163

Browse files
committed
✨ Run CI as a separate build
1 parent 84572cc commit 1650163

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

templates/lint.script.jj2

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flake8 . --exclude=.moban.d,docs {%block flake8_options%}--builtins=unicode,xrange,long{%endblock%}

templates/test.script.jj2

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{%endif%}
2323
{%endif%}
2424
pip freeze
25-
nosetests --with-coverage --cover-package {{package|lower|replace('-', '_')}} --cover-package tests tests {%if include_doctest%}--with-doctest --doctest-extension=.rst README.rst{%endif%} {%if not nodocs%}docs/source{%endif%} {%if not external_module_library%}{{package|lower|replace('-', '_')}}{%endif%} && flake8 . --exclude=.moban.d,docs {%block flake8_options%}--builtins=unicode,xrange,long{%endblock%}
25+
nosetests --with-coverage --cover-package {{package|lower|replace('-', '_')}} --cover-package tests tests {%if include_doctest%}--with-doctest --doctest-extension=.rst README.rst{%endif%} {%if not nodocs%}docs/source{%endif%} {%if not external_module_library%}{{package|lower|replace('-', '_')}}{%endif%}
2626

2727
{%block posttest%}
2828
{%endblock%}

templates/travis.yml.jj2

+14
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ python:
1919
{%endblock%}
2020
{%block extra_matrix%}
2121
{%endblock%}
22+
23+
stages:
24+
- test
25+
- lint
26+
jobs:
27+
include:
28+
- stage: lint
29+
python: 3.6
30+
script: make lint
31+
32+
stage: test
33+
34+
script: make test
35+
2236
before_install:
2337
{% block custom_install %}
2438
{% endblock%}

0 commit comments

Comments
 (0)