Skip to content

Commit 9d989c9

Browse files
authored
Merge pull request #76 from ayan-b/sep-lint
Run CI as a separate build
2 parents 84572cc + 3ff0297 commit 9d989c9

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ all: upstreaming
22

33
upstreaming:
44
moban -m mobanfile
5+
6+
lint: flake8 . --exclude=.moban.d,docs --builtins=unicode,xrange,long

templates/lint.script.jj2

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 14 additions & 0 deletions
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)