mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 08:15:59 -10:00
transfer.sh shut down some time ago and the output of the Mac build tools is completely useless.
31 lines
934 B
Bash
Executable File
31 lines
934 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
|
|
cd build
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
ninja -k 20 all
|
|
|
|
if [ "$CONFIGURATION" = "Debug" ]; then
|
|
valgrind --leak-check=full --error-exitcode=1 --gen-suppressions=all \
|
|
--suppressions="$TRAVIS_BUILD_DIR/ci/travis/valgrind.supp" ./bin/unittests --gtest_shuffle
|
|
else
|
|
./bin/unittests --gtest_shuffle
|
|
fi
|
|
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
cmake --build . --config "$CONFIGURATION" | tee build.log | xcpretty
|
|
XCODE_RET=${PIPESTATUS[0]}
|
|
if [ "$XCODE_RET" -ne "0" ]; then
|
|
tar -cvzf build.log.tar.gz build.log
|
|
curl --upload-file build.log.tar.gz "https://keep.sh"
|
|
exit $XCODE_RET
|
|
fi
|
|
elif [ "$TRAVIS_OS_NAME" = "windows" ]; then
|
|
if [ "$CMAKE_GENERATOR" = "Ninja" ]; then
|
|
cmake --build . --config "$CONFIGURATION"
|
|
else
|
|
cmake --build . --config "$CONFIGURATION" -- /verbosity:minimal
|
|
fi
|
|
fi
|