Skip to content

Commit 659bfca

Browse files
committed
Merge branch 'devel'
2 parents 219cfb5 + f363c67 commit 659bfca

File tree

4 files changed

+382
-324
lines changed

4 files changed

+382
-324
lines changed

.travis.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,40 @@ python:
55

66
# Python 3.7 has to be done a different way
77
# https://github.com/travis-ci/travis-ci/issues/9069
8-
jobs:
8+
matrix:
99
include:
10-
- language: python
11-
python: "3.7"
10+
- python: "3.7"
1211
dist: xenial
1312
sudo: required
1413

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"
2229

2330
# command to install dependencies
2431
install:
2532
- pip install --upgrade pip
2633
- pip uninstall numpy Bottleneck -y
2734
- 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
2937
script:
30-
- pytest
38+
- pytest --cov=corrections/
39+
after_success:
40+
- codecov
41+
3142
branches:
3243
only:
3344
- master
@@ -36,11 +47,14 @@ branches:
3647

3748
# Deploy to GitHub Releases, making a release of the
3849
# 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()"
3952
deploy:
4053
provider: releases
4154
api_key: $GITHUB_TOKEN
4255
skip_cleanup: true
4356
draft: true
57+
name: $TRAVIS_TAG
4458
on:
4559
branch:
4660
- master

0 commit comments

Comments
 (0)