forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
58 lines (50 loc) · 1.01 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
55
56
57
58
language: c
dist: xenial
sudo: false
group: beta
git:
depth: 10
branches:
only:
- 2.7
os:
- linux
- osx
compiler:
- clang
- gcc
env:
- TESTING=cpython
matrix:
fast_finish: true
include:
- os: linux
language: cpp
compiler: clang
env:
- TESTING="C++ header compatibility"
before_script:
- ./configure
script:
- echo '#include "Python.h"' > test.cc && $CXX -c test.cc -o /dev/null -I ./Include -I .
exclude:
- os: osx
compiler: gcc
# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
before_script:
- |
set -e
./configure --with-pydebug
make -j4
make -j4 regen-all
changes=`git status --porcelain`
if ! test -z "$changes"
then
echo "Generated files not up to date"
echo "$changes"
exit 1
fi
make pythoninfo
script:
# `-r -w` implicitly provided through `make buildbottest`.
- make buildbottest TESTOPTS="-j4 -uall,-cpu"