-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Robbepop/state_ptr
- Loading branch information
Showing
4 changed files
with
104 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
language: cpp | ||
compiler: | ||
- gcc | ||
- clang | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
dist: trusty | ||
sudo: required | ||
|
||
env: | ||
matrix: | ||
# The CMake setup does not afford testing in Release mode yet | ||
# - BUILDTYPE=Release | ||
- BUILDTYPE=Debug | ||
|
||
matrix: | ||
exclude: | ||
# gcc is just an alias for clang on OS X, so remove the rsp. build for now | ||
- os: osx | ||
compiler: gcc | ||
|
||
# Note: For clang builds, a gcc-6 environment is set up as well so that a | ||
# C++14-compliant libstdc++ can be used. | ||
before_script: | ||
- if [ `uname` = "Linux" ]; then | ||
wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - ; | ||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test ; | ||
sudo add-apt-repository -y "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main" ; | ||
sudo apt-get update ; | ||
if [ "$CXX" = "g++" ]; then | ||
sudo apt-get install -y --force-yes g++-6 ; | ||
export CC=gcc-6 ; | ||
export CXX=g++-6 ; | ||
fi ; | ||
if [ "$CXX" = "clang++" ]; then | ||
sudo apt-get install -y --force-yes g++-6 ; | ||
sudo apt-get install -y --force-yes clang-4.0 ; | ||
export CC=clang-4.0 ; | ||
export CXX=clang++-4.0 ; | ||
fi ; | ||
fi | ||
|
||
script: | ||
- mkdir -p ../build | ||
- cd ../build | ||
- cmake -DCMAKE_BUILD_TYPE=${BUILDTYPE} ../state_ptr | ||
- cmake --build . -- -j2 | ||
- ctest -V |
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,39 @@ | ||
image: Visual Studio 2017 | ||
|
||
init: | ||
- git config --global core.autocrlf input | ||
|
||
clone_folder: C:\projects\repos\state_ptr | ||
|
||
platform: | ||
- x64 | ||
- x86 | ||
|
||
environment: | ||
global: | ||
REPO_DIR: C:\projects\repos | ||
INSTALLATION_DIR: C:\projects\installation | ||
|
||
configuration: | ||
# The CMake setup does not afford testing in Release mode yet | ||
# - Release | ||
- Debug | ||
|
||
build_script: | ||
- IF "%PLATFORM%" == "x64" ( SET CMAKE_GENERATOR="Visual Studio 15 2017 Win64") | ||
- IF "%PLATFORM%" == "x86" ( SET CMAKE_GENERATOR="Visual Studio 15 2017") | ||
|
||
# Build and test state_ptr | ||
- cd %REPO_DIR%\state_ptr | ||
- git submodule init | ||
- git submodule update | ||
- mkdir ..\build | ||
- cd ..\build | ||
- cmake -G %CMAKE_GENERATOR% -DCMAKE_INSTALL_PREFIX=%INSTALLATION_DIR% ..\state_ptr | ||
- cmake --build . --config %CONFIGURATION% | ||
- ctest -V -C %CONFIGURATION% | ||
|
||
build: | ||
verbosity: minimal | ||
|
||
test: off |
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