-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging develop into master for Hana version 1.1.0
- Loading branch information
Showing
1,652 changed files
with
3,846 additions
and
2,280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright Louis Dionne 2013-2016 | ||
# Copyright Louis Dionne 2013-2017 | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | ||
|
||
|
@@ -42,6 +42,7 @@ cache: | |
- ${TRAVIS_BUILD_DIR}/deps/boost-1.60.0 | ||
- ${TRAVIS_BUILD_DIR}/deps/boost-1.61.0 | ||
- ${TRAVIS_BUILD_DIR}/deps/boost-1.62.0 | ||
- ${TRAVIS_BUILD_DIR}/deps/boost-1.63.0 | ||
|
||
|
||
matrix: | ||
|
@@ -64,31 +65,31 @@ matrix: | |
########################################################################## | ||
# Clang 3.5 | ||
# TODO: Find out why this fails to compile the test suite. | ||
# - env: UNIT_TESTS=true LLVM_VERSION=3.5.2 BOOST_VERSION=default CMAKE_OPTIONS="-DBOOST_HANA_ENABLE_MEMCHECK=ON" | ||
# - env: UNIT_TESTS=true LLVM_VERSION=3.5.2 BOOST_VERSION=default ENABLE_MEMCHECK=true | ||
|
||
# Clang 3.6 | ||
- os: linux | ||
env: UNIT_TESTS=true LLVM_VERSION=3.6.2 BOOST_VERSION=default CMAKE_OPTIONS="-DBOOST_HANA_ENABLE_MEMCHECK=ON" | ||
env: UNIT_TESTS=true LLVM_VERSION=3.6.2 BOOST_VERSION=default ENABLE_MEMCHECK=true | ||
compiler: clang | ||
|
||
# Clang 3.7 | ||
- os: linux | ||
env: UNIT_TESTS=true LLVM_VERSION=3.7.1 BOOST_VERSION=default CMAKE_OPTIONS="-DBOOST_HANA_ENABLE_MEMCHECK=ON" | ||
env: UNIT_TESTS=true LLVM_VERSION=3.7.1 BOOST_VERSION=default ENABLE_MEMCHECK=true | ||
compiler: clang | ||
|
||
# Clang 3.8 | ||
- os: linux | ||
env: UNIT_TESTS=true LLVM_VERSION=3.8.0 BOOST_VERSION=default CMAKE_OPTIONS="-DBOOST_HANA_ENABLE_MEMCHECK=ON" | ||
env: UNIT_TESTS=true LLVM_VERSION=3.8.0 BOOST_VERSION=default ENABLE_MEMCHECK=true | ||
compiler: clang | ||
|
||
# Clang 3.9 | ||
- os: linux | ||
env: UNIT_TESTS=true LLVM_VERSION=3.9.0 BOOST_VERSION=default CMAKE_OPTIONS="-DBOOST_HANA_ENABLE_MEMCHECK=ON" | ||
env: UNIT_TESTS=true LLVM_VERSION=3.9.0 BOOST_VERSION=default ENABLE_MEMCHECK=true | ||
compiler: clang | ||
|
||
# GCC 6 | ||
- os: linux | ||
env: UNIT_TESTS=true COMPILER=g++-6 BOOST_VERSION=default CMAKE_OPTIONS="-DBOOST_HANA_ENABLE_MEMCHECK=ON" | ||
env: UNIT_TESTS=true COMPILER=g++-6 BOOST_VERSION=default ENABLE_MEMCHECK=true | ||
compiler: gcc | ||
|
||
# Xcode 6.4 | ||
|
@@ -144,6 +145,11 @@ matrix: | |
env: UNIT_TESTS=true LLVM_VERSION=default BOOST_VERSION=1.61.0 | ||
compiler: clang | ||
|
||
# With Boost 1.62 | ||
- os: linux | ||
env: UNIT_TESTS=true LLVM_VERSION=default BOOST_VERSION=1.62.0 | ||
compiler: clang | ||
|
||
# Without Boost (make sure we don't depend on it) | ||
- os: linux | ||
env: UNIT_TESTS=true LLVM_VERSION=default | ||
|
@@ -210,7 +216,7 @@ install: | |
# Setup default versions and override compiler if needed | ||
############################################################################ | ||
- if [[ "${LLVM_VERSION}" == "default" ]]; then LLVM_VERSION=3.9.0; fi | ||
- if [[ "${BOOST_VERSION}" == "default" ]]; then BOOST_VERSION=1.62.0; fi | ||
- if [[ "${BOOST_VERSION}" == "default" ]]; then BOOST_VERSION=1.63.0; fi | ||
|
||
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi | ||
|
||
|
@@ -237,16 +243,18 @@ install: | |
fi | ||
############################################################################ | ||
# Install a recent CMake (unless already installed on OS X) | ||
# Install a recent CMake | ||
############################################################################ | ||
- | | ||
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | ||
CMAKE_URL="http://www.cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz" | ||
CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz" | ||
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake | ||
export PATH=${DEPS_DIR}/cmake/bin:${PATH} | ||
else | ||
if ! brew ls --version cmake &>/dev/null; then brew install cmake; fi | ||
brew install cmake | ||
brew upgrade cmake | ||
fi | ||
- cmake --version | ||
|
||
############################################################################ | ||
# Install Boost.Build | ||
|
@@ -284,6 +292,7 @@ install: | |
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LLVM_DIR}/install/lib" | ||
export PATH="${LLVM_DIR}/clang/bin:${PATH}" | ||
fi | ||
- ${CXX} --version | ||
|
||
############################################################################ | ||
# Install a recent Doxygen | ||
|
@@ -293,6 +302,7 @@ install: | |
DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.linux.bin.tar.gz" | ||
mkdir doxygen && travis_retry wget --quiet -O - ${DOXYGEN_URL} | tar --strip-components=1 -xz -C doxygen | ||
export PATH=${DEPS_DIR}/doxygen/bin:${PATH} | ||
doxygen --version | ||
fi | ||
############################################################################ | ||
|
@@ -312,13 +322,13 @@ before_script: | |
# Set the git identity (for pushing the documentation and the benchmarks) | ||
############################################################################ | ||
- git config --global user.name "Travis bot" | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.email "<>" | ||
|
||
############################################################################ | ||
# Go back to the root of the project and setup the build directory | ||
############################################################################ | ||
- cd ${TRAVIS_BUILD_DIR} | ||
- (mkdir build && cd build && cmake .. -DBOOST_HANA_ENABLE_WERROR=ON ${CMAKE_OPTIONS}) | ||
- (mkdir build && cd build && cmake .. ${CMAKE_OPTIONS}) | ||
|
||
|
||
script: | ||
|
@@ -329,7 +339,7 @@ script: | |
if [[ "${CHECK_FORMATTING}" == "true" ]]; then | ||
# Find non-ASCII characters in headers | ||
hpps=$(find include doc -name \*\.hpp) | ||
cpps=$(find test example experimental -name \*\.cpp) | ||
cpps=$(find test example -name \*\.cpp) | ||
pcregrep --color='auto' -n "[\x80-\xFF]" ${hpps} ${cpps} | ||
if [[ $? -ne 1 ]]; then exit 1; fi | ||
|
@@ -356,7 +366,7 @@ script: | |
pushd doc/html | ||
git add --all . | ||
git commit --allow-empty -m "Update to ${TRAVIS_COMMIT:0:7}" | ||
git commit --allow-empty -m "Update documentation to ${TRAVIS_COMMIT:0:7}" | ||
# Suppress output to avoid leaking the token | ||
travis_retry git push origin gh-pages &>/dev/null | ||
popd | ||
|
@@ -367,6 +377,7 @@ script: | |
if [[ "${DOCUMENTATION}" == "true" && "${BOOST_BUILD}" == "true" ]]; then | ||
touch Jamroot | ||
(cd doc && b2) | ||
if [[ ! -d doc/html ]]; then exit 1; fi | ||
fi | ||
############################################################################ | ||
|
@@ -409,8 +420,12 @@ script: | |
############################################################################ | ||
- | | ||
if [[ "${UNIT_TESTS}" == "true" && "${BOOST_BUILD}" != "true" ]]; then | ||
export CTEST_PARALLEL_LEVEL=2 # Run unit tests on two cores | ||
(cd build && make check -j2 -k) | ||
(cd build && make tests examples -j2 -k) && | ||
if [[ "${ENABLE_MEMCHECK}" == "true" ]]; then | ||
(cd build && ctest --output-on-failure -j2 -D ExperimentalMemCheck) | ||
else | ||
(cd build && ctest --output-on-failure -j2) | ||
fi | ||
fi | ||
- | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.