forked from uber-archive/pyflame
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (33 loc) · 875 Bytes
/
.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
sudo: required
dist: trusty
language: cpp
compiler: gcc
env:
global:
- MAKEOPTS=-j3
matrix:
- PYVERSION=python2.6
- PYVERSION=python2.7
- PYVERSION=python3.4
- PYVERSION=python3.5
- PYVERSION=python3.6
- PYVERSION=python3.7
addons:
apt:
sources:
- sourceline: 'ppa:fkrull/deadsnakes'
- autotools-dev
- libtool
- pkg-config
install:
- sudo sysctl kernel.yama.ptrace_scope=0
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install --allow-unauthenticated "${PYVERSION}"{,-minimal,-dev}
# Travis puts some other Python versions in /opt, so it's very important that we
# use an explicit /usr/bin path when running the tests.
script:
- ./autogen.sh
- ./configure --disable-silent-rules --enable-werror
- make $MAKEOPTS
- file ./src/pyflame
- ./runtests.sh -v /usr/bin/"${PYVERSION}"