mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
Abort the travis build if make failed
This commit is contained in:
parent
594b993ddc
commit
4cb9de3c9b
12
.travis.yml
12
.travis.yml
@ -65,7 +65,7 @@ install:
|
||||
|
||||
# Function for creating a new 'build' directory
|
||||
- |
|
||||
function invoke_build {
|
||||
function renew_build {
|
||||
echo "Renew build directory..."
|
||||
cd $TRAVIS_BUILD_DIR
|
||||
|
||||
@ -76,7 +76,6 @@ install:
|
||||
|
||||
# Configure the project and build it
|
||||
cmake -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Werror" -DCMAKE_BUILD_TYPE=Debug ..
|
||||
make -j2
|
||||
}
|
||||
|
||||
script:
|
||||
@ -86,17 +85,20 @@ script:
|
||||
# - ASan (LSan):
|
||||
echo "Building with address sanitizer..."
|
||||
CMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
||||
invoke_build
|
||||
renew_build
|
||||
make -j2
|
||||
ctest --verbose
|
||||
|
||||
# - UBSan:
|
||||
echo "Building with undefined behaviour sanitizer..."
|
||||
CMAKE_CXX_FLAGS="-fsanitize=undefined -fno-omit-frame-pointer"
|
||||
invoke_build
|
||||
renew_build
|
||||
make -j2
|
||||
ctest --verbose
|
||||
else
|
||||
# Build an run the tests suite with valgrind
|
||||
invoke_build
|
||||
renew_build
|
||||
make -j2
|
||||
valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes ctest --verbose
|
||||
fi
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# continuable->then(make_things_simple());
|
||||
|
||||
[](https://travis-ci.org/Naios/continuable) [](https://ci.appveyor.com/project/Naios/continuable)  [](http://melpon.org/wandbox/permlink/TPSde7EsCcXcC72D)
|
||||
[](https://travis-ci.org/Naios/continuable) [](https://ci.appveyor.com/project/Naios/continuable)  [](http://melpon.org/wandbox/permlink/gRWxSNHtARvRcmSY)
|
||||
|
||||
> Async C++14 platform independent continuation chainer providing light and allocation aware futures
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user