| 1 | sudo: false |
| 2 | dist: xenial |
| 3 | |
| 4 | language: python |
| 5 | |
| 6 | env: |
| 7 | global: |
| 8 | - PIP_WHEEL_DIR=$HOME/.cache/pip/wheels |
| 9 | - PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels |
| 10 | |
| 11 | cache: |
| 12 | directories: |
| 13 | - ~/.cache/pip |
| 14 | |
| 15 | addons: |
| 16 | apt: |
| 17 | sources: |
| 18 | - ubuntu-toolchain-r-test |
| 19 | packages: |
| 20 | - gcc-6 |
| 21 | - g++-6 |
| 22 | |
| 23 | python: |
| 24 | - 3.7 |
| 25 | |
| 26 | before_install: |
| 27 | - pip install pip setuptools --upgrade |
| 28 | - pip install pip pytest --upgrade |
| 29 | |
| 30 | install: |
| 31 | - CC=g++-6 pip install .\[tests\] --upgrade |
| 32 | |
| 33 | script: |
| 34 | - (cd src && CC=gcc-6 CXX=g++-6 make -f Makefile-custom -j 4 test) |
| 35 | - py.test ais test --cov=ais --cov-report term-missing |