summaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2018-01-19 17:15:15 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2018-01-19 17:15:15 +0200
commitc1c82c2e2031f4ecb95ec02cf392563871bd5133 (patch)
tree80e7d3d84d5a6df94a6f6c94deafb5ed31ba7ae2 /.circleci
parent880f9464c73701c667e67f81f09bad6822bb33cd (diff)
downloadcherrypy-git-c1c82c2e2031f4ecb95ec02cf392563871bd5133.tar.gz
Enable Circle CI to run tests under macOS
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml36
1 files changed, 35 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 74d654d8..aa8ebaa8 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,9 +1,43 @@
version: 2
jobs:
- build:
+ macos-build:
+ macos:
+ xcode: "9.2.0"
+
+ steps:
+ - run: brew install pyenv readline xz
+
+ - run: |-
+ # https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables
+ echo '
+ export PYENV_ROOT="$HOME/.pyenv"
+ export PATH="$PYENV_ROOT/bin:$PATH"
+ ' >> $BASH_ENV
+
+ - run: |-
+ for py_ver in 2.7.14 3.6.4 3.5.4 3.4.7 pypy3.5-5.10.0
+ do
+ pyenv install "$py_ver" &
+ done
+ wait
+ - run: pyenv global 2.7.14 3.6.4 3.5.4 3.4.7 pypy3.5-5.10.0
+
+ - run: pip install tox tox-pyenv
+ - checkout
+ - run: tox -e py27,py34,py35,py36,pypy3 -- -p no:sugar
+
+ linux-build:
docker:
- image: randomknowledge/docker-pyenv-tox
+
steps:
- checkout
- run: pip install tox
- run: tox -e py27,py34,py35,py36
+
+workflows:
+ version: 2
+ test-linux-and-macos:
+ jobs:
+ - macos-build
+ - linux-build