]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/.travis.yml
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / python / .travis.yml
1 #
2 # Copyright (c) 2016 Stefan Seefeld
3 # All rights reserved.
4 #
5 # Distributed under the Boost Software License, Version 1.0.
6 # (See accompanying file LICENSE_1_0.txt or copy at
7 # http://www.boost.org/LICENSE_1_0.txt)
8
9 sudo: required
10 dist: trusty
11
12 language: cpp
13
14 env:
15 global:
16 - secure: BRNUkxN3p8f+uYKWC3Hr0VPqZA0PxbWr1DJlcI4hbiZtzKhMCWjDmd9UW9CzzexqeOxpd+9s0G87qvOur+wMSVxugDxtTesZrh1czXHeSVxgQrYD783XJtQJ9aYypbChkiboRD6Xpmbq7itwMuHBJMFtCuDxMynpU1jWwkyTf2Y=
17
18 matrix:
19 include:
20 - compiler: gcc
21 env: CXX=g++ PYTHON=python CXXFLAGS=-std=c++98
22 - compiler: gcc
23 env: CXX=g++ PYTHON=python CXXFLAGS=-std=c++11
24 - compiler: gcc
25 env: CXX=g++ PYTHON=python3 CXXFLAGS=-std=c++98
26 - compiler: gcc
27 env: CXX=g++ PYTHON=python3 CXXFLAGS=-std=c++11
28 - compiler: clang
29 # clang generates an 'illegal instruction' error in the NumPy check.
30 # Perhaps we need to upgrade clang to a newer version ?
31 env: CXX=clang++ PYTHON=python3 CXXFLAGS=-std=c++98 OPTIONS=--no-numpy
32 - compiler: clang
33 env: CXX=clang++ PYTHON=python3 CXXFLAGS=-std=c++11 OPTIONS=--no-numpy
34 - env: PYTHON=python DOC=1
35
36
37 addons:
38 apt:
39 sources:
40 - ubuntu-toolchain-r-test
41 packages:
42 - scons
43 - gcc-4.8
44 - g++-4.8
45 - clang
46 - python-numpy
47 - python-sphinx
48 - python3-dev
49 - python3-numpy
50 - libboost-all-dev
51 - xsltproc
52 - docbook-xsl
53 - python-docutils
54
55
56 cache:
57 directories:
58 - $HOME/Boost
59
60 before_install:
61 # The Trusty image has several Python versions pre-installed compiled with
62 # conflicting UCS2 and UCS4 unicode. Modify the PATH to skip the TravisCI python.
63 # See https://github.com/travis-ci/travis-ci/issues/4948 for details.
64 - export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
65
66 install:
67 # Install our own version of Boost (the subset we need) as the system version is
68 # too old (for C++11 support).
69 - rm -rf $HOME/Boost
70 - |
71 set -e
72 if [ ! -d $HOME/Boost ]; then
73 echo "rebuilding Boost prerequisites"
74 wget https://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.gz/download
75 tar xf download
76 pushd boost_1_61_0
77 ./bootstrap.sh
78 ./b2 tools/bcp
79 mkdir -p $HOME/Boost
80 dist/bin/bcp python tools/boostbook tools/quickbook $HOME/Boost &> /dev/null
81 popd
82 fi
83
84 before_script:
85 - scons --version
86
87 script:
88 - scons config --python=$PYTHON --boost-include=$HOME/Boost $OPTIONS
89 - if [ "$DOC" ]; then scons doc; else scons && scons test; fi
90
91 after_success:
92 # Upload docs only when building upstream.
93 - |
94 if [ "$DOC" -a \
95 "$TRAVIS_REPO_SLUG" = "boostorg/python" -a \
96 "$TRAVIS_PULL_REQUEST" = "false" ]; then
97 export GH_TOKEN
98 .ci/upload_docs.sh
99 fi