-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from stlab/develop
Release merge into master
- Loading branch information
Showing
61 changed files
with
5,943 additions
and
4,737 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
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,6 +1,6 @@ | ||
sudo: required | ||
dist: trusty | ||
group: deprecated-2017Q4 | ||
#group: deprecated-2017Q4 | ||
language: cpp | ||
|
||
cache: | ||
|
@@ -13,39 +13,41 @@ addons: | |
- sourceline: "deb http://apt.llvm.org/precise/ llvm-toolchain-precise-3.8 main" | ||
key_url : "http://apt.llvm.org/llvm-snapshot.gpg.key" | ||
- ubuntu-toolchain-r-test | ||
- george-edison55-precise-backports | ||
# - george-edison55-precise-backports | ||
packages: | ||
- g++-5 | ||
- clang-3.8 | ||
- cmake | ||
- cmake-data | ||
|
||
branches: | ||
except: /pr\/.*/ | ||
|
||
before_install: | ||
- pip install --user conan | ||
|
||
script: | ||
- .travis/build.sh | ||
|
||
matrix: | ||
include: | ||
# | ||
# Mac Clang, Debug & Release | ||
# | ||
- os: osx | ||
compiler: clang | ||
osx_image: xcode8 | ||
before_install: pip install conan | ||
osx_image: xcode9 | ||
before_install: | ||
- brew update | ||
- brew upgrade python | ||
- pip3 install conan | ||
- ./enhance_conan.sh | ||
|
||
env: | ||
build_type=debug | ||
options="-D stlab_testing=ON" | ||
|
||
- os: osx | ||
compiler: clang | ||
osx_image: xcode8 | ||
before_install: pip install conan | ||
osx_image: xcode9 | ||
before_install: | ||
- brew update | ||
- brew upgrade python | ||
- pip3 install conan | ||
- ./enhance_conan.sh | ||
|
||
env: | ||
build_type=release | ||
options="-D stlab_testing=ON" | ||
|
@@ -136,19 +138,18 @@ matrix: | |
options="-D stlab_testing=ON" | ||
before_install: | ||
- pip install --user conan | ||
- ./enhance_conan.sh | ||
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: "deb http://apt.llvm.org/precise/ llvm-toolchain-precise-3.8 main" | ||
key_url : "http://apt.llvm.org/llvm-snapshot.gpg.key" | ||
- ubuntu-toolchain-r-test | ||
- george-edison55-precise-backports | ||
# - george-edison55-precise-backports | ||
packages: | ||
- g++-5 | ||
- clang-3.8 | ||
- cmake | ||
- cmake-data | ||
coverity_scan: | ||
project: | ||
name: "stlab/libraries" | ||
|
@@ -158,6 +159,42 @@ matrix: | |
build_command: ".travis/build.sh" | ||
branch_pattern: coverity | ||
|
||
|
||
before_install: | ||
- pip install --user conan | ||
- ./enhance_conan.sh | ||
|
||
|
||
install: | ||
############################################################################ | ||
# All the dependencies are installed in ${HOME}/deps/ | ||
############################################################################ | ||
- DEPS_DIR="${HOME}/deps" | ||
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR} | ||
|
||
############################################################################ | ||
# Install a recent CMake | ||
############################################################################ | ||
- | | ||
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | ||
CMAKE_URL="https://cmake.org/files/v3.10/cmake-3.10.0-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 | ||
brew install cmake || brew upgrade cmake | ||
fi | ||
- cmake --version | ||
|
||
############################################################################ | ||
# Go back to the root of the project and setup the build directory | ||
############################################################################ | ||
- cd "${TRAVIS_BUILD_DIR}" | ||
|
||
|
||
script: | ||
- .travis/build.sh | ||
|
||
|
||
notifications: | ||
recipients: | ||
- [email protected] | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Software Technology Lab Concurrency Library | ||
|
||
## Requirements | ||
* C++ 14 compatible compiler | ||
* Visual Studio 2015 Update 5 or later | ||
* Clang 3.8 or later | ||
* GCC 4.8.5 or later | ||
|
||
* boost.optional, boost.variant (only for C++14, see below for further details) | ||
* boost.test (only for the unit tests) | ||
|
||
## Configuration Options | ||
The concurrency library is a header only library. Add ./ to the include path. | ||
It is necessary to add the compiler flag -fpermissive for all gcc versions < 7, | ||
because of a gcc bug. The compiler complains about a static constexpr statement | ||
in the `stlab::task class`. It accepts the code with the -fpermissive flag, but | ||
the compiler produces a huge ammount of warnings, that can only be silenced with | ||
-w flag. | ||
|
||
The library uses per default boost::optional and boost::variant. | ||
|
||
Under certain conditions, it uses different implementations for optional in the following order: | ||
* boost::optional, if the define STLAB_FORCE_BOOST_OPTIONAL is set, or | ||
* std::optional, if C++17 is enabled and std::optional is available, or | ||
* std::experimental::optional, if it is available, otherwise | ||
* boost::optional | ||
|
||
Under certain conditions, it uses different implementations for variant in the following order: | ||
* boost::variant, if the define STLAB_FORCE_BOOST_VARIANT is set, or | ||
* std::variant, if C++17 is enabled and std::variant is available, or | ||
* boost::variant | ||
|
||
|
||
|
||
|
||
|
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
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.