Skip to content

Commit 79f8a8d

Browse files
committed
Test all supported python versions
1 parent 2454216 commit 79f8a8d

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.travis.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
language: python
2-
python:
3-
- "3.6"
42

53
sudo: false
64

@@ -13,17 +11,39 @@ stages:
1311
install:
1412
- pip install -r requirements-dev.txt
1513

14+
script:
15+
- pylint pylintfileheader pylintfileheadertest
16+
- pytest --cov pylintfileheader pylintfileheadertest
17+
1618
jobs:
1719
include:
20+
# Test Stage
1821
- stage: test
19-
script:
20-
- python -m pylint ./*/*.py
21-
- pytest --cov pylintfileheader pylintfileheadertest
22+
python: 2.7
23+
script: pytest --cov pylintfileheader pylintfileheadertest # Do not lint here
24+
- stage: test
25+
python: 3.4
26+
- stage: test
27+
python: 3.5
28+
- stage: test
29+
python: 3.6
30+
- stage: test
31+
python: 3.7
32+
- stage: test
33+
python: 3.8
34+
after_success:
35+
- codecov
36+
37+
# Bundle Stage
2238
- stage: bundle
39+
python: 3.8
2340
script:
2441
- cp ThirdPartyNotices.txt ./pylintfileheader
2542
- python setup.py sdist bdist_wheel
43+
44+
# Deploy Stage
2645
- stage: deploy
46+
python: 3.8
2747
before_deploy:
2848
- cp ThirdPartyNotices.txt ./pylintfileheader
2949
- python setup.py sdist bdist_wheel
@@ -37,6 +57,3 @@ jobs:
3757
skip_cleanup: true
3858
on:
3959
tags: true
40-
41-
after_success:
42-
- codecov

0 commit comments

Comments
 (0)