summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2019-02-26 19:38:29 -0800
committerSeth Morton <seth.m.morton@gmail.com>2019-02-26 19:39:08 -0800
commitdef1269e3437185d9200c451a0f16b8fd55c2fc8 (patch)
treee946ea4705c07df8b7ffcb0f84b5e0de637dc9f8
parent3a1100be16a287153df5c6770e3b13b5a6d7c2b4 (diff)
downloadnatsort-def1269e3437185d9200c451a0f16b8fd55c2fc8.tar.gz
Simplify Travis-CI configuration
Rather than explicitly mention every job to run, use the built-in mechanism to define most jobs, and then only the jobs with differing settings are listed in the include matrix.
-rw-r--r--.travis.yml19
1 files changed, 9 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index 7ff0718..9acf0f1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,12 +2,19 @@ dist: xenial
sudo: false
language: python
cache: pip
+python:
+ - 2.7
+ - 3.4
+ - 3.5
+ - 3.6
+ - 3.7
+
+# By default do not build "extras". Builds with "extras" will be included manually below.
+env: WITH_EXTRAS=""
jobs:
include:
- python: "2.7"
- env: WITH_EXTRAS=""
- - python: "2.7"
env: WITH_EXTRAS="fast,icu"
addons:
apt:
@@ -15,12 +22,6 @@ jobs:
- libicu-dev
- language-pack-de
- language-pack-en
- - python: "3.4"
- env: WITH_EXTRAS=""
- - python: "3.5"
- env: WITH_EXTRAS=""
- - python: "3.6"
- env: WITH_EXTRAS=""
- python: "3.6"
env: WITH_EXTRAS="fast,icu"
addons:
@@ -29,8 +30,6 @@ jobs:
- libicu-dev
- language-pack-de
- language-pack-en
- - python: "3.7"
- env: WITH_EXTRAS=""
- stage: code-quality
python: "3.6"
install: pip install flake8 flake8-import-order flake8-bugbear pep8-naming twine check-manifest