File tree Expand file tree Collapse file tree 4 files changed +382
-324
lines changed Expand file tree Collapse file tree 4 files changed +382
-324
lines changed Original file line number Diff line number Diff line change @@ -5,29 +5,40 @@ python:
5
5
6
6
# Python 3.7 has to be done a different way
7
7
# https://github.com/travis-ci/travis-ci/issues/9069
8
- jobs :
8
+ matrix :
9
9
include :
10
- - language : python
11
- python : " 3.7"
10
+ - python : " 3.7"
12
11
dist : xenial
13
12
sudo : required
14
13
15
- # Allow some newer versions of Python to fail for now
16
- # This will be changed once the required packages starts
17
- # supporting the newer versions of Python:
18
- # matrix:
19
- # fast_finish: true
20
- # allow_failures:
21
- # - python: "2.7"
14
+ - name : " Flake8"
15
+ python : " 3.6"
16
+ git :
17
+ lfs_skip_smudge : true
18
+ install :
19
+ - pip install flake8
20
+ script :
21
+ - flake8
22
+
23
+ # Allow some newer versions of Python to fail for now
24
+ # This will be changed once the required packages starts
25
+ # supporting the newer versions of Python:
26
+ fast_finish : true
27
+ allow_failures :
28
+ - name : " Flake8"
22
29
23
30
# command to install dependencies
24
31
install :
25
32
- pip install --upgrade pip
26
33
- pip uninstall numpy Bottleneck -y
27
34
- pip install numpy==1.15.4 --no-cache-dir
28
- - pip install -r requirements.txt --no-cache-dir
35
+ - pip install -r requirements.txt
36
+ - pip install codecov pytest-cov
29
37
script :
30
- - pytest
38
+ - pytest --cov=corrections/
39
+ after_success :
40
+ - codecov
41
+
31
42
branches :
32
43
only :
33
44
- master
@@ -36,11 +47,14 @@ branches:
36
47
37
48
# Deploy to GitHub Releases, making a release of the
38
49
# code whenever a new tag is added on the master branch
50
+ before_deploy :
51
+ - python -c "from corrections import version; version.update_release_version()"
39
52
deploy :
40
53
provider : releases
41
54
api_key : $GITHUB_TOKEN
42
55
skip_cleanup : true
43
56
draft : true
57
+ name : $TRAVIS_TAG
44
58
on :
45
59
branch :
46
60
- master
You can’t perform that action at this time.
0 commit comments