2016-06-23 19:20:37 +00:00
|
|
|
language: c
|
2016-07-29 03:13:29 +00:00
|
|
|
sudo: false
|
2016-06-23 19:20:37 +00:00
|
|
|
matrix:
|
2016-06-29 03:35:16 +00:00
|
|
|
include:
|
|
|
|
###
|
|
|
|
## Linux builds using various versions of GCC.
|
|
|
|
###
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-6 CXX_COMPILER=g++-6
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-6
|
|
|
|
- g++-6
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-5 CXX_COMPILER=g++-5
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-5
|
|
|
|
- g++-5
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.9 CXX_COMPILER=g++-4.9
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.9
|
|
|
|
- g++-4.9
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.8 CXX_COMPILER=g++-4.8
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.8
|
|
|
|
- g++-4.8
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.7 CXX_COMPILER=g++-4.7
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.7
|
|
|
|
- g++-4.7
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.6 CXX_COMPILER=g++-4.6
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.6
|
|
|
|
- g++-4.6
|
2016-07-27 03:59:28 +00:00
|
|
|
# - os: linux
|
|
|
|
# env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.5 CXX_COMPILER=g++-4.5
|
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# sources:
|
|
|
|
# - ubuntu-toolchain-r-test
|
|
|
|
# packages:
|
|
|
|
# - gcc-4.5
|
|
|
|
# - g++-4.5
|
2016-06-29 03:35:16 +00:00
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.4 CXX_COMPILER=g++-4.4
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.4
|
|
|
|
- g++-4.4
|
|
|
|
|
|
|
|
###
|
2016-07-23 02:14:29 +00:00
|
|
|
## clang on Linux
|
2016-06-29 03:35:16 +00:00
|
|
|
###
|
|
|
|
- os: linux
|
2016-07-23 02:14:29 +00:00
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.8
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- clang-3.8
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=clang-3.7 CXX_COMPILER=clang++-3.7
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.7
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- clang-3.7
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=clang-3.6 CXX_COMPILER=clang++-3.6
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.6
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- clang-3.6
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=clang-3.5 CXX_COMPILER=clang++-3.5
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.5
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- clang-3.5
|
2016-06-29 03:35:16 +00:00
|
|
|
|
2017-02-19 09:06:13 +00:00
|
|
|
###
|
|
|
|
## PGI Community Edition on Linux
|
|
|
|
###
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=pgcc CXX_COMPILER=pgc++
|
|
|
|
|
2016-06-29 03:35:16 +00:00
|
|
|
###
|
|
|
|
## Python build on Linux
|
|
|
|
###
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=python C_COMPILER=gcc-6 CXX_COMPILER=g++-6
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-6
|
|
|
|
- g++-6
|
|
|
|
|
|
|
|
###
|
|
|
|
## CMake on OS X
|
|
|
|
##
|
|
|
|
## These all work, but it seems unnecessary to actually build them
|
|
|
|
## all since we already test all these versions of GCC on Linux.
|
|
|
|
## We'll just test 4.4 and the most recent version.
|
|
|
|
###
|
2016-09-20 08:11:46 +00:00
|
|
|
# - os: osx
|
|
|
|
# env: BUILD_SYSTEM=cmake C_COMPILER=gcc-6 CXX_COMPILER=g++-6
|
|
|
|
- os: osx
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-5 CXX_COMPILER=g++-5
|
2016-06-29 03:35:16 +00:00
|
|
|
# - os: osx
|
|
|
|
# env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.9 CXX_COMPILER=g++-4.9
|
|
|
|
# - os: osx
|
|
|
|
# env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.8 CXX_COMPILER=g++-4.8
|
|
|
|
# - os: osx
|
|
|
|
# env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.7 CXX_COMPILER=g++-4.7
|
|
|
|
# - os: osx
|
|
|
|
# env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.6 CXX_COMPILER=g++-4.6
|
|
|
|
# - os: osx
|
|
|
|
# env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.5 CXX_COMPILER=g++-4.5
|
|
|
|
- os: osx
|
2016-10-20 12:16:00 +00:00
|
|
|
osx_image: beta-xcode6.2
|
2016-06-29 03:35:16 +00:00
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.4 CXX_COMPILER=g++-4.4
|
|
|
|
|
|
|
|
###
|
|
|
|
## Python OS X builds
|
|
|
|
###
|
|
|
|
- os: osx
|
2016-10-12 13:08:41 +00:00
|
|
|
env: BUILD_SYSTEM=python INSTALL_TYPE=macpython PYTHON_VERSION=2.7.12 C_COMPILER=gcc CXX_COMPILER=g++
|
2016-06-29 03:35:16 +00:00
|
|
|
- os: osx
|
2016-10-12 13:08:41 +00:00
|
|
|
env: BUILD_SYSTEM=python INSTALL_TYPE=macpython PYTHON_VERSION=3.4.4 C_COMPILER=gcc CXX_COMPILER=g++
|
2016-06-29 03:35:16 +00:00
|
|
|
- os: osx
|
2016-10-12 13:08:41 +00:00
|
|
|
env: BUILD_SYSTEM=python INSTALL_TYPE=macpython PYTHON_VERSION=3.5.2 C_COMPILER=gcc CXX_COMPILER=g++
|
2016-06-29 03:35:16 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
## Sanitizers
|
|
|
|
###
|
2016-07-23 03:09:09 +00:00
|
|
|
- os: linux
|
2016-07-26 15:22:58 +00:00
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 SANITIZER=address
|
2016-07-23 03:09:09 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2016-07-26 15:22:58 +00:00
|
|
|
- llvm-toolchain-precise-3.8
|
2016-07-23 03:09:09 +00:00
|
|
|
packages:
|
2016-07-26 15:22:58 +00:00
|
|
|
- clang-3.8
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 SANITIZER=thread
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-precise-3.8
|
|
|
|
packages:
|
|
|
|
- clang-3.8
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 SANITIZER=undefined CFLAGS="-fno-sanitize-recover=undefined,integer"
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-precise-3.8
|
|
|
|
packages:
|
|
|
|
- clang-3.8
|
2016-06-23 19:20:37 +00:00
|
|
|
|
2016-07-28 20:31:09 +00:00
|
|
|
###
|
|
|
|
## mingw
|
|
|
|
###
|
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=cmake C_COMPILER=x86_64-w64-mingw32-gcc CXX_COMPILER=x86_64-w64-mingw32-g++ RC_COMPILER=x86_64-w64-mingw32-windres CROSS_COMPILE=yes
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- george-edison55-precise-backports
|
|
|
|
packages:
|
|
|
|
- binutils-mingw-w64-x86-64
|
|
|
|
- g++-mingw-w64-x86-64
|
|
|
|
- gcc-mingw-w64-x86-64
|
|
|
|
- binutils-mingw-w64-x86-64
|
|
|
|
- wine
|
|
|
|
# Because 2.8.6 passes -rdynamic to the linker, which breaks the build.
|
|
|
|
- cmake
|
|
|
|
- cmake-data
|
|
|
|
|
2017-03-22 18:13:59 +00:00
|
|
|
- os: linux
|
|
|
|
env: BUILD_SYSTEM=maven
|
|
|
|
language: java
|
|
|
|
|
2017-03-23 12:35:53 +00:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2017-06-22 08:58:13 +00:00
|
|
|
language: java
|
2017-03-23 12:35:53 +00:00
|
|
|
env: BUILD_SYSTEM=bazel
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2017-06-22 09:38:49 +00:00
|
|
|
- sourceline: "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8"
|
|
|
|
key_url: "https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg"
|
2017-03-23 12:35:53 +00:00
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2017-06-22 09:38:49 +00:00
|
|
|
- oracle-java8-installer
|
|
|
|
- bazel
|
2017-03-23 12:35:53 +00:00
|
|
|
|
|
|
|
- os: osx
|
|
|
|
env: BUILD_SYSTEM=bazel
|
|
|
|
|
2016-06-29 03:35:16 +00:00
|
|
|
before_install:
|
|
|
|
###
|
2016-07-26 15:22:58 +00:00
|
|
|
## If we use the matrix to set CC/CXX Travis, overwrites the values,
|
2016-06-29 03:35:16 +00:00
|
|
|
## so instead we use C/CXX_COMPILER, then copy the values to CC/CXX
|
|
|
|
## here (after Travis has set CC/CXX).
|
|
|
|
###
|
|
|
|
- if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi
|
|
|
|
- if [ -n "${CXX_COMPILER}" ]; then export CXX="${CXX_COMPILER}"; fi
|
2017-04-23 12:07:08 +00:00
|
|
|
- scripts/.travis.sh before_install
|
2015-08-11 11:39:49 +00:00
|
|
|
install:
|
2017-04-23 12:07:08 +00:00
|
|
|
- scripts/.travis.sh install
|
2015-08-11 11:39:49 +00:00
|
|
|
script:
|
2017-04-23 12:07:08 +00:00
|
|
|
- scripts/.travis.sh script
|
2015-08-11 11:39:49 +00:00
|
|
|
after_success:
|
2017-04-23 12:07:08 +00:00
|
|
|
- scripts/.travis.sh after_success
|
2016-06-23 19:20:37 +00:00
|
|
|
|
2015-08-11 11:39:49 +00:00
|
|
|
before_deploy:
|
2016-08-10 17:50:40 +00:00
|
|
|
- if [ "${BUILD_SYSTEM}" = "python" ] && [ "${TRAVIS_OS_NAME}" = "osx" ]; then export WHEELS=$(ls ./dist/*.whl); fi
|
2017-04-23 12:07:08 +00:00
|
|
|
- scripts/.travis.sh before_deploy
|
2015-08-12 14:57:03 +00:00
|
|
|
|
2015-08-31 13:34:42 +00:00
|
|
|
deploy:
|
2017-03-24 11:54:20 +00:00
|
|
|
- provider: releases
|
2015-08-31 13:34:42 +00:00
|
|
|
api_key:
|
|
|
|
secure: YcCBi6W/w4dtKCa59Wfm8L5lGWvK7KxaFNDr3yh1Hz5aStXXf758pEMHGewnlbfbwuj5a3SjBb1nLp1M69OQJfxm442uXBaBKo52PM9PPbD7NjvbNIso73pqcSODXQXKuZxDFpEhfuDTVq3hUkUqiwhChWhrFucJsSL51i7qSss=
|
2016-06-23 19:20:37 +00:00
|
|
|
file: "${WHEELS}"
|
2015-08-31 13:34:42 +00:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2016-06-23 19:20:37 +00:00
|
|
|
repo: "google/brotli"
|
2015-08-31 13:34:42 +00:00
|
|
|
tags: true
|
2016-08-10 18:29:48 +00:00
|
|
|
condition: "${BUILD_SYSTEM} = python && ${TRAVIS_OS_NAME} = osx"
|
2017-03-24 11:54:20 +00:00
|
|
|
- provider: bintray
|
2017-04-23 12:07:08 +00:00
|
|
|
file: "scripts/.bintray.json"
|
2017-03-24 11:54:20 +00:00
|
|
|
user: "eustas"
|
|
|
|
key:
|
|
|
|
secure: "Kbam/lTAdz72fZivbs6riJT+Y4PbuKP7r6t5PAWxJxAAykjwnYTRe3zF472g9HCE14KYMsdB+KSYSgg6TGJnqGC9gL9xhhGU9U/WmA+vbMWS/MSnMWpK9IRpp77pM2i2NKZD4v33JuEwKFCBJP3Vj6QQ5Qd1NKdobuXJyznhgnw="
|
|
|
|
on:
|
|
|
|
condition: "${BUILD_SYSTEM} = bazel"
|
|
|
|
skip_cleanup: true
|