]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
CI: Add mac builds
authorLasse Schuirmann <lasse.schuirmann@gmail.com>
Tue, 4 Aug 2015 09:46:04 +0000 (11:46 +0200)
committerLasse Schuirmann <lasse.schuirmann@gmail.com>
Tue, 4 Aug 2015 11:10:44 +0000 (13:10 +0200)
.ci/deploy.linux.sh [new file with mode: 0644]
.ci/deploy.osx.sh [new file with mode: 0644]
.ci/deps.linux.sh [new file with mode: 0644]
.ci/deps.osx.sh [new file with mode: 0644]
.travis.yml

diff --git a/.ci/deploy.linux.sh b/.ci/deploy.linux.sh
new file mode 100644 (file)
index 0000000..4d59382
--- /dev/null
@@ -0,0 +1,4 @@
+set -x
+set -e
+
+bash <(curl -s https://codecov.io/bash)
diff --git a/.ci/deploy.osx.sh b/.ci/deploy.osx.sh
new file mode 100644 (file)
index 0000000..c44550e
--- /dev/null
@@ -0,0 +1,4 @@
+set -x
+set -e
+
+echo "Due to a bug in codecov, coverage cannot be deployed for Mac builds."
diff --git a/.ci/deps.linux.sh b/.ci/deps.linux.sh
new file mode 100644 (file)
index 0000000..13cc9e1
--- /dev/null
@@ -0,0 +1,4 @@
+set -x
+set -e
+
+echo "No dependencies to install for linux."
diff --git a/.ci/deps.osx.sh b/.ci/deps.osx.sh
new file mode 100644 (file)
index 0000000..b52a84f
--- /dev/null
@@ -0,0 +1,11 @@
+set -e
+set -x
+
+# Install packages with brew
+brew update >/dev/null
+brew outdated pyenv || brew upgrade --quiet pyenv
+
+# Install required python version for this build
+pyenv install -ks $PYTHON_VERSION
+pyenv global $PYTHON_VERSION
+python --version
index cda41362d17d181ae98f8ece87934591231aae1c..95b1695f22d0d8d2aac61aacd590cfe46e52a30c 100644 (file)
@@ -1,13 +1,54 @@
 language: python
 
-python:
-  - "2.6"
-  - "2.7"
-  - "pypy"
-  - "3.3"
-  - "3.4"
+sudo: false
+
+cache: false
+
+matrix:
+  include:
+    - os: linux
+      python: 2.6
+    - os: linux
+      python: 2.7
+    - os: linux
+      python: pypy
+    - os: linux
+      python: 3.3
+    - os: linux
+      python: 3.4
+    - os: osx
+      language: generic
+      env:
+      - PYTHON_VERSION=2.6.6
+      - PYENV_ROOT=~/.pyenv
+      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
+    - os: osx
+      language: generic
+      env:
+      - PYTHON_VERSION=2.7.10
+      - PYENV_ROOT=~/.pyenv
+      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
+    - os: osx
+      language: generic
+      env:
+      - PYTHON_VERSION=pypy-2.6.0
+      - PYENV_ROOT=~/.pyenv
+      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
+    - os: osx
+      language: generic
+      env:
+      - PYTHON_VERSION=3.3.6
+      - PYENV_ROOT=~/.pyenv
+      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
+    - os: osx
+      language: generic
+      env:
+      - PYTHON_VERSION=3.4.3
+      - PYENV_ROOT=~/.pyenv
+      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
 
 install:
+  - bash .ci/deps.${TRAVIS_OS_NAME}.sh
   - pip install --upgrade pip
   - pip install pytest pytest-cov
   - pip install --editable .
@@ -17,7 +58,7 @@ sudo: false
 
 script:
   - make test-cov
-  - bash <(curl -s https://codecov.io/bash)
+  - bash .ci/deploy.${TRAVIS_OS_NAME}.sh
 
 notifications:
   email: false