11# Travis Configuration based on that used for rig_c_sa
22sudo : false # Use the container based system
3- language : generic # Make no assumptions about the environment
3+ language : python # Build under Python to avoid needing to compile Numpy
4+ python :
5+ - 2.7
6+ - 3.4
7+ - 3.5
48
59# Install packages for building and running the test suite
610addons :
@@ -10,43 +14,21 @@ addons:
1014 - valgrind
1115 - libffi-dev
1216
13- # Test against a number of python versions
14- env :
15- matrix :
16- - PYVER=2.7
17- - PYVER=3.4
18- - PYVER=3.5
19-
20-
2117install :
22- - git clone https://github.com/yyuu/pyenv.git ~/.pyenv
23- - PYENV_ROOT="${HOME}/.pyenv"
24- - PATH="$PYENV_ROOT/bin:$PATH"
25- - eval "$(pyenv init -)"
26- # Install the latest release of the specified Python version using pyenv.
27- - PYVER="$(pyenv install --list | grep -E "^\\s*$PYVER" | sort -n -t. -k3 | tail -n1)"
28- - echo "Selected Python $PYVER"
29- - pyenv install $PYVER
30- # Make the newly installed version the default "python" command.
31- - pyenv global $PYVER
32- - python --version
33- # Install PIP
34- - curl -O https://bootstrap.pypa.io/get-pip.py
35- - python get-pip.py --user
3618 - pip install -r requirements-test.txt
3719
3820script :
3921 # Run the C tests first
4022 - cd c_tests
4123 - make coverage
4224 - cd -
43- # Then check that the package can be built and run the tests
25+ # Then check that the package can be built, and run the Python tests
4426 - python setup.py develop
4527 - >
4628 py.test py_tests \
4729 --cov rig_routing_tables \
4830 --cov tests
49- - flake8 rig_routing_tables tests
31+ - flake8 rig_routing_tables py_tests
5032
5133after_success :
5234 - bash <(curl -s https://codecov.io/bash)
0 commit comments