summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2019-02-26 21:10:20 -0800
committerSeth Morton <seth.m.morton@gmail.com>2019-02-27 21:32:58 -0800
commit7becf791ce39ac3c00a63f6621f61f11f8af47e0 (patch)
tree1b5646a0d7e314c1b410a7712c8e68960a46b716
parent34fd14790aedfdad7e7af1455ea688ccc4165d63 (diff)
downloadnatsort-7becf791ce39ac3c00a63f6621f61f11f8af47e0.tar.gz
Add Windows support for Travis-CI
This uses the choco package manager to add python. pip must be called with "py -m pip" so the "install" step is implemented specially for windows. Like MacOS, ICU is not tested for Windows. There is a bug right now with choco and secret variables, so secrets are disabled for windows only. This should be fixed ASAP.
-rw-r--r--.travis.yml16
1 files changed, 14 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index acda714..5bf279e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -38,8 +38,7 @@ jobs:
- language-pack-de
- language-pack-en
- # For MacOS, only run Python 3.7 without "icu" because native locale
- # handling is poor on MacOS and should be validated.
+ # For MacOS and Windows, only run Python 3.7 without "icu" to test native locales
- python: "3.7"
language: sh
os: osx
@@ -51,6 +50,19 @@ jobs:
- export PYENV_VERSION_STRING="Python ${PYENV_VERSION}"
- wget https://github.com/praekeltfoundation/travis-pyenv/releases/download/0.4.0/setup-pyenv.sh
- source setup-pyenv.sh
+ - python: "3.7"
+ language: cpp
+ os: windows
+ filter_secrets: false
+ env:
+ - WITH_EXTRAS=""
+ - TOXENV=py37
+ before_install:
+ - choco install python --version 3.7.1
+ - export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
+ install:
+ - py -m pip install -U pip
+ - py -m pip install tox tox-travis codacy-coverage codecov
# This "code-quality" stage does static analysis and formatting checks.
# Platform- and Python-version-independent.