summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2019-02-26 20:31:59 -0800
committerSeth Morton <seth.m.morton@gmail.com>2019-02-26 20:31:59 -0800
commit9852a958cafa489efe30cd19f6a6a3bedb0d3539 (patch)
tree2ae9462ce5e1b0d2c848f2d08d56cfc4616e8d8f
parent1ff57888988eac5ce8830a927d18ea4cf439ac6a (diff)
downloadnatsort-9852a958cafa489efe30cd19f6a6a3bedb0d3539.tar.gz
First attempt to add MacOS to Travis-CI
This attempt uses homebrew to install pyenv, and then pyenv to install python.
-rw-r--r--.travis.yml27
1 files changed, 26 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 7c9c3f2..3431893 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,6 +35,31 @@ jobs:
- language-pack-de
- language-pack-en
+ # For MacOS, only run Python 3.7 with and without "icu"
+ - language: sh
+ os: osx
+ env:
+ - WITH_EXTRAS=""
+ - TOXENV=py37
+ before_install:
+ - brew update
+ - brew install pyenv || brew upgrade pyenv
+ - pyenv install --skip-existing --keep --verbose 3.7.1
+ - pyenv shell 3.7.1
+ - python --version
+ - language: sh
+ os: osx
+ env:
+ - WITH_EXTRAS="icu"
+ - TOXENV=py37
+ before_install:
+ - brew update
+ - brew install icu # need to install icu global package
+ - brew install pyenv || brew upgrade pyenv
+ - pyenv install --skip-existing --keep --verbose 3.7.1
+ - pyenv shell 3.7.1
+ - python --version
+
# This "code-quality" stage does static analysis and formatting checks.
# Platform- and Python-version-independent.
- stage: code-quality
@@ -50,7 +75,7 @@ jobs:
install:
- pip install -U pip
-- pip install tox-travis codacy-coverage codecov
+- pip install tox tox-travis codacy-coverage codecov
script:
- tox