-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
54 lines (44 loc) · 1.42 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: c++
compiler:
- clang
- gcc
os:
- linux
cache: ccache
dist: bionic
notifications:
email: false
addons:
apt:
sources: # repository with backports and tll packages
- sourceline: "deb http://psha.org.ru/debian/ $TRAVIS_DIST contrib backports"
key_url: https://psha.org.ru/debian/pubkey.gpg
packages:
- clang # For clang variant, PATH is reset
- cmake
- meson
- pkg-config
- libfmt-dev
- googletest
- python3-dev
- cython3
- python3-pytest
before_install:
# TODO: remove when not needed. Enable IPv6, https://github.com/travis-ci/travis-ci/issues/8891
- sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
# Get libfmt 5, not available in bionic
#- wget http://archive.ubuntu.com/ubuntu/pool/universe/f/fmtlib/libfmt-dev_5.2.1+ds-2_amd64.deb && sudo dpkg -i libfmt-dev_5.2.1+ds-2_amd64.deb
# Get meson from 19.10, 0.45 is unusable
#- wget http://archive.ubuntu.com/ubuntu/pool/universe/m/meson/meson_0.51.2-1_all.deb && sudo dpkg -i meson_0.51.2-1_all.deb
script:
- |
set -e
#pyenv global 3.6.7 # Not working
echo $PATH
export PATH=/home/travis/bin:/bin:/usr/bin:/usr/local/bin # Reset path so pyenv is ignored
meson build
ninja -vC build
cd python
python3 setup.py build_ext --inplace --library-dirs=../build/src --rpath=`pwd`/../build/src
python3 -m pytest --log-level=DEBUG -v
# vim: sts=2 sw=2 et