Use language: generic for Mac builds on Travis

https://github.com/travis-ci/travis-ci/issues/2312
This commit is contained in:
Joe Rickerby
2017-09-10 21:29:01 +01:00
parent e413863531
commit a7f81b3c58
+16 -7
View File
@@ -1,25 +1,38 @@
language: python language: generic
matrix: matrix:
include: include:
# Linux # Linux Python 2
- sudo: required - sudo: required
language: python
services: services:
- docker - docker
env: env:
- "PYTHON=python2" - "PYTHON=python2"
# Linux Python 3
- sudo: required - sudo: required
language: python
services: services:
- docker - docker
env: env:
- "PYTHON=python3" - "PYTHON=python3"
# macOS before_install:
- sudo apt-get -qq update
- sudo apt-get install -y python3-pip
# macOS Python 2
- os: osx - os: osx
env: env:
- "PYTHON=python2" - "PYTHON=python2"
# macOS Python 3
- os: osx - os: osx
env: env:
- "PYTHON=python3" - "PYTHON=python3"
before_install:
- brew update
- brew install python3
script: script:
- | - |
@@ -27,10 +40,6 @@ script:
$PYTHON -m pip install -r requirements-dev.txt $PYTHON -m pip install -r requirements-dev.txt
$PYTHON ./bin/run_tests.py $PYTHON ./bin/run_tests.py
else else
if [[ "$PYTHON" == python3 ]]; then
sudo apt-get -qq update
sudo apt-get install -y python3-pip
fi
# linux test requires root to clean up the wheelhouse (docker runs as root) # linux test requires root to clean up the wheelhouse (docker runs as root)
sudo $PYTHON -m pip install -r requirements-dev.txt sudo $PYTHON -m pip install -r requirements-dev.txt
sudo $PYTHON ./bin/run_tests.py sudo $PYTHON ./bin/run_tests.py