Skip to content

Commit d889ed9

Browse files
committed
.travis.yml: Include lint stage
1 parent 598c1cb commit d889ed9

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.travis.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,33 @@ install:
1010
stages:
1111
- test
1212
- moban
13+
- lint
14+
15+
.disable_global: &disable_global
16+
before_install: false
17+
install: true
18+
before_script: false
19+
after_success: false
20+
after_failure: false
21+
22+
.lint: &lint
23+
<<: *disable_global
24+
python: 3.6
25+
stage: lint
26+
install: pip install flake8
27+
script: flake8
1328

1429
jobs:
1530
include:
1631
- stage: moban
1732
script:
1833
- make
1934
- git diff --exit-code
35+
- *lint
2036

2137
stage: test
2238

2339
script:
2440
- find templates/ -type f -name '*.jj2' -exec echo '{}' \;|sed -e "s/templates\//{%include \"/" -e "s/$/\" %}/" > test.file
2541
- moban -c config/data.yml -t test.file -td templates .
2642
- pytest
27-
- flake8

0 commit comments

Comments
 (0)