travis: drop stuff moved to GH Actions
This commit is contained in:
parent
eeb8c7accf
commit
305efcaf3c
|
@ -33,14 +33,6 @@ info() {
|
||||||
echo -e "\033[33;1m$1\033[0m"
|
echo -e "\033[33;1m$1\033[0m"
|
||||||
}
|
}
|
||||||
|
|
||||||
error() {
|
|
||||||
echo >&2 -e "\033[31;1m$1\033[0m"
|
|
||||||
}
|
|
||||||
|
|
||||||
success() {
|
|
||||||
echo >&2 -e "\033[32;1m$1\033[0m"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Simple wrapper which retries given command up to five times
|
# Simple wrapper which retries given command up to five times
|
||||||
_retry() {
|
_retry() {
|
||||||
local EC=1
|
local EC=1
|
||||||
|
@ -110,46 +102,6 @@ for phase in "${PHASES[@]}"; do
|
||||||
-t $CONT_NAME \
|
-t $CONT_NAME \
|
||||||
meson test --timeout-multiplier=3 -C ./build/ --print-errorlogs
|
meson test --timeout-multiplier=3 -C ./build/ --print-errorlogs
|
||||||
;;
|
;;
|
||||||
RUN_BUILD_CHECK_GCC|RUN_BUILD_CHECK_CLANG)
|
|
||||||
ARGS=(
|
|
||||||
"--optimization=0"
|
|
||||||
"--optimization=2"
|
|
||||||
"--optimization=3"
|
|
||||||
"--optimization=s"
|
|
||||||
"-Db_lto=true"
|
|
||||||
"-Db_ndebug=true"
|
|
||||||
)
|
|
||||||
|
|
||||||
if [[ "$phase" = "RUN_BUILD_CHECK_CLANG" ]]; then
|
|
||||||
ENV_VARS="-e CC=clang -e CXX=clang++"
|
|
||||||
$DOCKER_EXEC clang --version
|
|
||||||
else
|
|
||||||
$DOCKER_EXEC gcc --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
for args in "${ARGS[@]}"; do
|
|
||||||
SECONDS=0
|
|
||||||
info "Checking build with $args"
|
|
||||||
# Redirect meson/ninja logs into separate files, otherwise we
|
|
||||||
# would trip over Travis' log size limit
|
|
||||||
if ! docker exec $ENV_VARS -it $CONT_NAME meson --werror $args build &> meson.log; then
|
|
||||||
cat meson.log
|
|
||||||
error "meson failed with $args"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! $DOCKER_EXEC ninja -v -C build &> ninja.log; then
|
|
||||||
cat ninja.log
|
|
||||||
error "ninja failed with $args"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
$DOCKER_EXEC rm -fr build
|
|
||||||
rm -f meson.log ninja.log
|
|
||||||
success "Build with $args passed in $SECONDS seconds"
|
|
||||||
done
|
|
||||||
|
|
||||||
;;
|
|
||||||
CLEANUP)
|
CLEANUP)
|
||||||
info "Cleanup phase"
|
info "Cleanup phase"
|
||||||
docker stop $CONT_NAME
|
docker stop $CONT_NAME
|
||||||
|
|
Loading…
Reference in New Issue