mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
travis: exit if any steps fail
We don't expect any steps to fail in travis. Exit the script if they do. Closes #1966
This commit is contained in:
parent
c514af5a4f
commit
2de63ab179
@ -93,6 +93,8 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
|
# Uncomment this when `coverage` runs on Trusty.
|
||||||
|
# set -eo pipefail
|
||||||
if [ "$T" = "coverage" ]; then
|
if [ "$T" = "coverage" ]; then
|
||||||
export CC="gcc-4.8"
|
export CC="gcc-4.8"
|
||||||
./configure --enable-debug --disable-shared --enable-code-coverage
|
./configure --enable-debug --disable-shared --enable-code-coverage
|
||||||
@ -105,18 +107,21 @@ script:
|
|||||||
coveralls --gcov /usr/bin/gcov-4.8 --gcov-options '\-lp' -e src -i lib -e tests -e docs -b $PWD/lib
|
coveralls --gcov /usr/bin/gcov-4.8 --gcov-options '\-lp' -e src -i lib -e tests -e docs -b $PWD/lib
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
|
set -eo pipefail
|
||||||
if [ "$T" = "debug" ]; then
|
if [ "$T" = "debug" ]; then
|
||||||
./configure --enable-debug --enable-werror $C
|
./configure --enable-debug --enable-werror $C
|
||||||
make && make examples
|
make && make examples
|
||||||
make TFLAGS=-n test-nonflaky
|
make TFLAGS=-n test-nonflaky
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
|
set -eo pipefail
|
||||||
if [ "$T" = "normal" ]; then
|
if [ "$T" = "normal" ]; then
|
||||||
./configure --enable-warnings --enable-werror $C
|
./configure --enable-warnings --enable-werror $C
|
||||||
make && make examples
|
make && make examples
|
||||||
make test-nonflaky
|
make test-nonflaky
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
|
set -eo pipefail
|
||||||
if [ "$T" = "cmake" ]; then
|
if [ "$T" = "cmake" ]; then
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
@ -124,6 +129,7 @@ script:
|
|||||||
make
|
make
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
|
set -eo pipefail
|
||||||
if [ "$T" = "distcheck" ]; then
|
if [ "$T" = "distcheck" ]; then
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
@ -155,6 +161,7 @@ script:
|
|||||||
make)
|
make)
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
|
set -eo pipefail
|
||||||
if [ "$T" = "fuzzer" ]; then
|
if [ "$T" = "fuzzer" ]; then
|
||||||
# Download the fuzzer to a temporary folder
|
# Download the fuzzer to a temporary folder
|
||||||
./tests/fuzz/download_fuzzer.sh /tmp/curl_fuzzer
|
./tests/fuzz/download_fuzzer.sh /tmp/curl_fuzzer
|
||||||
|
Loading…
Reference in New Issue
Block a user