Skip to content

Commit 98604c7

Browse files
authored
bpo-29529: Add .travis.yml to 2.7 branch (GH-27)
1 parent 4bfb603 commit 98604c7

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

.travis.yml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
language: c
2+
dist: trusty
3+
sudo: false
4+
group: beta
5+
6+
# To cache doc-building dependencies.
7+
cache: pip
8+
9+
os:
10+
- linux
11+
# macOS builds are disabled as the machines are under-provisioned on Travis,
12+
# adding up to an extra hour completing a full CI run.
13+
#- osx
14+
15+
compiler:
16+
- clang
17+
- gcc
18+
19+
env:
20+
- TESTING=cpython
21+
22+
matrix:
23+
include:
24+
- os: linux
25+
language: python
26+
python: 2.7
27+
env:
28+
- TESTING=docs
29+
before_script:
30+
- |
31+
if git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '^Doc/'
32+
then
33+
echo "Docs weren't updated, stopping build process."
34+
exit
35+
fi
36+
cd Doc
37+
- pip install -U Sphinx
38+
script:
39+
- make html SPHINXOPTS="-q"
40+
- make check
41+
- os: linux
42+
language: cpp
43+
compiler: clang
44+
env:
45+
- TESTING="C++ header compatibility"
46+
before_script:
47+
- ./configure
48+
script:
49+
- echo '#include "Python.h"' > test.cc && $CXX -c test.cc -o /dev/null -I ./Include -I .
50+
51+
# Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
52+
before_script:
53+
- |
54+
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)/'
55+
then
56+
echo "Only docs were updated, stopping build process."
57+
exit
58+
fi
59+
./configure --with-pydebug
60+
make -j4
61+
62+
script:
63+
# `-r -w` implicitly provided through `make buildbottest`.
64+
- make buildbottest TESTOPTS="-j4"
65+
66+
notifications:
67+
email: false
68+
irc:
69+
channels:
70+
# This is set to a secure variable to prevent forks from notifying the
71+
# IRC channel whenever they fail a build. This can be removed when travis
72+
# implements https://github.com/travis-ci/travis-ci/issues/1094.
73+
# The actual value here is: irc.freenode.net#python-dev
74+
- secure: "s7kAkpcom2yUJ8XqyjFI0obJmhAGrn1xmoivdaPdgBIA++X47TBp1x4pgDsbEsoalef7bEwa4l07KdT4qa+DOd/c4QxaWom7fbN3BuLVsZuVfODnl79+gYq/TAbGfyH+yDs18DXrUfPgwD7C5aW32ugsqAOd4iWzfGJQ5OrOZzqzGjYdYQUEkJFXgxDEIb4aHvxNDWGO3Po9uKISrhb5saQ0l776yLo1Ur7M4oxl8RTbCdgX0vf5TzPg52BgvZpOgt3DHOUYPeiJLKNjAE6ibg0U95sEvMfHX77nz4aFY4/3UI6FFaRla34rZ+mYKrn0TdxOhera1QOgPmM6HzdO4K44FpfK1DS0Xxk9U9/uApq+cG0bU3W+cVUHDBe5+90lpRBAXHeHCgT7TI8gec614aiT8lEr3+yH8OBRYGzkjNK8E2LJZ/SxnVxDe7aLF6AWcoWLfS6/ziAIBFQ5Nc4U72CT8fGVSkl8ywPiRlvixKdvTODMSZo0jMqlfZSNaAPTsNRx4wu5Uis4qekwe32Fz4aB6KGpsuuVjBi+H6v0RKxNJNGY3JKDiEH2TK0UE2auJ5GvLW48aUVFcQMB7euCWYXlSWVRHh3WLU8QXF29Dw4JduRZqUpOdRgMHU79UHRq+mkE0jAS/nBcS6CvsmxCpTSrfVYuMOu32yt18QQoTyU="
75+
on_success: change
76+
on_failure: always
77+
skip_join: true

0 commit comments

Comments
 (0)