Files
cibuildwheel/.travis.yml
T

34 lines
638 B
YAML

language: python
matrix:
include:
# Linux
- sudo: required
services:
- docker
env:
- "PYTHON=python2"
- sudo: required
services:
- docker
env:
- "PYTHON=python3"
# macOS
- os: osx
env:
- "PYTHON=python2"
- os: osx
env:
- "PYTHON=python3"
script:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
$PYTHON -m pip install .
$PYTHON ./run_tests.py
else
# linux test requires root to clean up the wheelhouse (docker runs as root)
sudo $PYTHON -m pip install .
sudo $PYTHON ./run_tests.py
fi