Skip to content

Commit 598c1cb

Browse files
committed
CI: Do not install from requirements in lint stage
1 parent 9d989c9 commit 598c1cb

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

templates/travis.yml.jj2

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,24 @@ python:
2323
stages:
2424
- test
2525
- lint
26+
27+
.disable_global: &disable_global
28+
before_install: false
29+
install: true
30+
before_script: false
31+
after_success: false
32+
after_failure: false
33+
34+
.lint: &lint
35+
<<: *disable_global
36+
python: 3.6
37+
stage: lint
38+
install: pip install flake8
39+
script: flake8
40+
2641
jobs:
2742
include:
28-
- stage: lint
29-
python: 3.6
30-
script: make lint
43+
- *lint
3144

3245
stage: test
3346

@@ -36,7 +49,6 @@ script: make test
3649
before_install:
3750
{% block custom_install %}
3851
{% endblock%}
39-
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
4052
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
4153
mv min_requirements.txt requirements.txt ;
4254
fi

0 commit comments

Comments
 (0)