Skip to content

Commit 75ef63f

Browse files
committed
Add .travis.yml to 2.7 branch
1 parent 5c32988 commit 75ef63f

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

.travis.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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+
allow_failures:
24+
- env:
25+
- TESTING=coverage
26+
include:
27+
- os: linux
28+
language: python
29+
python: 3.5
30+
env:
31+
- TESTING=docs
32+
before_script:
33+
- cd Doc
34+
- make venv PYTHON=python3
35+
script:
36+
- make html SPHINXBUILD="./venv/bin/python3 -m sphinx" SPHINXOPTS="-q"
37+
- os: linux
38+
language: c
39+
compiler: clang
40+
env:
41+
- TESTING=coverage
42+
before_script:
43+
- ./configure
44+
- make -s -j4
45+
# Need a venv that can parse covered code.
46+
- ./python -m venv venv
47+
- ./venv/bin/python -m pip install -U coverage
48+
script:
49+
# Skip tests that re-run the entire test suite.
50+
- ./venv/bin/python -m coverage run --pylib -m test -uall -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
51+
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
52+
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
53+
- source ./venv/bin/activate
54+
- bash <(curl -s https://codecov.io/bash)
55+
- os: linux
56+
language: cpp
57+
compiler: clang
58+
env:
59+
- TESTING="C++ header compatibility"
60+
before_script:
61+
- ./configure
62+
script:
63+
- echo '#include "Python.h"' > test.cc && $CXX -c test.cc -o /dev/null -I ./Include -I .
64+
65+
# Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
66+
before_script:
67+
- ./configure --with-pydebug
68+
- make -j4
69+
70+
script:
71+
# `-r -w` implicitly provided through `make buildbottest`.
72+
- make buildbottest TESTOPTS="-j4"
73+
74+
notifications:
75+
email: false
76+
irc:
77+
channels:
78+
# This is set to a secure variable to prevent forks from notifying the
79+
# IRC channel whenever they fail a build. This can be removed when travis
80+
# implements https://github.com/travis-ci/travis-ci/issues/1094.
81+
# The actual value here is: irc.freenode.net#python-dev
82+
- secure: "s7kAkpcom2yUJ8XqyjFI0obJmhAGrn1xmoivdaPdgBIA++X47TBp1x4pgDsbEsoalef7bEwa4l07KdT4qa+DOd/c4QxaWom7fbN3BuLVsZuVfODnl79+gYq/TAbGfyH+yDs18DXrUfPgwD7C5aW32ugsqAOd4iWzfGJQ5OrOZzqzGjYdYQUEkJFXgxDEIb4aHvxNDWGO3Po9uKISrhb5saQ0l776yLo1Ur7M4oxl8RTbCdgX0vf5TzPg52BgvZpOgt3DHOUYPeiJLKNjAE6ibg0U95sEvMfHX77nz4aFY4/3UI6FFaRla34rZ+mYKrn0TdxOhera1QOgPmM6HzdO4K44FpfK1DS0Xxk9U9/uApq+cG0bU3W+cVUHDBe5+90lpRBAXHeHCgT7TI8gec614aiT8lEr3+yH8OBRYGzkjNK8E2LJZ/SxnVxDe7aLF6AWcoWLfS6/ziAIBFQ5Nc4U72CT8fGVSkl8ywPiRlvixKdvTODMSZo0jMqlfZSNaAPTsNRx4wu5Uis4qekwe32Fz4aB6KGpsuuVjBi+H6v0RKxNJNGY3JKDiEH2TK0UE2auJ5GvLW48aUVFcQMB7euCWYXlSWVRHh3WLU8QXF29Dw4JduRZqUpOdRgMHU79UHRq+mkE0jAS/nBcS6CvsmxCpTSrfVYuMOu32yt18QQoTyU="
83+
on_success: change
84+
on_failure: always
85+
skip_join: true

0 commit comments

Comments
 (0)