Skip to content

Commit 34553ec

Browse files
authored
:green: revive ci test for dev branch. #135 (#136)
* :green: revive ci test for dev branch. #135 * 💚 try with 3.6 * 🐛 fix travis config * 🐛 fix travis config * 💄 sync with latest config * 🐛 fix travis config * 🐛 fix travis config
1 parent ba79b3e commit 34553ec

File tree

7 files changed

+32
-28
lines changed

7 files changed

+32
-28
lines changed

.moban.dt/local-travis.yml.jj2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block custom_python_versions %}
44
python:
55
- 3.7
6-
- 2.7
6+
- 3.6
77
{% endblock %}
88

99

.travis.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,33 @@ notifications:
55
email: false
66
python:
77
- 3.7
8-
- 2.7
8+
- 3.6
9+
10+
stages:
11+
- lint
12+
- moban
13+
- test
14+
15+
16+
.lint: &lint
17+
git:
18+
submodules: false
19+
python: 3.6
20+
stage: lint
21+
script: make install_test lint
22+
23+
.moban: &moban
24+
python: 3.6
25+
stage: moban
26+
install: pip install moban>=0.0.4 gitfs2 pypifs
27+
script: make upstreaming git-diff-check
28+
29+
jobs:
30+
include:
31+
- *moban
32+
- *lint
33+
34+
stage: test
935

1036
before_install:
1137
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
@@ -24,13 +50,3 @@ script:
2450
- pytest
2551
after_success:
2652
codecov
27-
28-
29-
jobs:
30-
include:
31-
- stage: lint
32-
before_install: false
33-
script: make install_test lint
34-
- stage: moban
35-
install: pip install moban>=0.0.4 gitfs2 pypifs
36-
script: make upstreaming git-diff-check

templates/travis.yml.jj2

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,9 @@ stages:
4141
- test
4242

4343
{% endblock %}
44-
.disable_global: &disable_global
45-
addons: false
46-
cache: false
47-
env: {}
48-
python: false
49-
before_install: false
50-
install: false
51-
before_script: false
52-
script: false
53-
after_success: false
54-
after_failure: false
55-
before_deploy: false
56-
deploy: false
5744

5845
{% if lint_command != False %}
5946
.lint: &lint
60-
<<: *disable_global
6147
git:
6248
submodules: false
6349
python: 3.6
@@ -70,7 +56,6 @@ stages:
7056
{% endif %}
7157
{% if moban_command != False %}
7258
.moban: &moban
73-
<<: *disable_global
7459
python: 3.6
7560
stage: moban
7661
install: pip install moban>=0.0.4 gitfs2 pypifs

tests/fixtures/setup.py.output

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ CLASSIFIERS = [
6060

6161
]
6262

63+
6364
INSTALL_REQUIRES = [
6465
]
6566
SETUP_COMMANDS = {}

tests/fixtures/setup_use_markers_false.py.output

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ CLASSIFIERS = [
6060

6161
]
6262

63+
6364
INSTALL_REQUIRES = [
6465
]
6566
SETUP_COMMANDS = {}

tests/fixtures/setup_use_markers_true.py.output

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ CLASSIFIERS = [
6060

6161
]
6262

63+
6364
INSTALL_REQUIRES = [
6465
]
6566
SETUP_COMMANDS = {}

tests/test_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def test_setup():
1212
yaml = YAML(typ="safe")
1313
context = yaml.load(content)
1414
rendered = get_rendered_file(filename, context)
15+
print(rendered)
1516
expected = get_file_content("setup.py.output")
1617
assert expected == rendered
1718

@@ -36,6 +37,5 @@ def test_setup_use_markers_false():
3637
yaml = YAML(typ="safe")
3738
context = yaml.load(content)
3839
rendered = get_rendered_file(filename, context)
39-
print(rendered)
4040
expected = get_file_content("setup_use_markers_false.py.output")
4141
assert expected == rendered

0 commit comments

Comments
 (0)