Newly set up projects on Travis CI use their containerized
infrastructure, which doesn't allow setuid programs to run. Adding the
`sudo: required` line opts out of the containerized infrastructure.
The current `setup_travis.sh` uses sudo to call `update-alternatives`
which doesn't have an equivalent yet. Tracking bug for that feature:
https://github.com/travis-ci/travis-ci/issues/3668
36 lines
637 B
YAML
36 lines
637 B
YAML
# Use older, non-container infrastructure to allow sudo
|
|
sudo: required
|
|
|
|
language: python
|
|
|
|
python:
|
|
- 2.6
|
|
- 2.7
|
|
- 3.3
|
|
- 3.4
|
|
- pypy
|
|
|
|
env:
|
|
- BUILD_CAPNP=
|
|
- BUILD_CAPNP=true
|
|
- BUILD_CAPNP=true CFLAGS="-DKJ_DEBUG"
|
|
|
|
# skip testing for pypy + BUILD_CAPNP=false since it's failing in travis for some reason
|
|
matrix:
|
|
exclude:
|
|
- python: pypy
|
|
env: BUILD_CAPNP=
|
|
|
|
compiler: gcc
|
|
|
|
before_install:
|
|
- buildutils/setup_travis.sh
|
|
- travis_retry pip install -U setuptools
|
|
- travis_retry pip install cython==0.21.2
|
|
- travis_retry pip install pytest
|
|
|
|
install:
|
|
- travis_retry pip install --editable .
|
|
|
|
script: py.test test;
|