1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 01:04:50 +01:00

Add Linux portable to GitHub CI (#10612)

This commit is contained in:
Ted John
2020-01-24 11:46:12 +00:00
committed by GitHub
parent 5be2604f27
commit eab255c4bf
11 changed files with 210 additions and 114 deletions

View File

@@ -5,13 +5,18 @@ set -e
basedir="$(readlink -f `dirname $0`/..)"
cd $basedir/bin
# Ensure test data uses LF
dos2unix testdata/keys/*
# Scan objects first so that does not happen within a test
echo -e "\033[0;36mBuilding OpenRCT2 repository indexes...\033[0m"
./openrct2 scan-objects
# Now run all the tests
echo -e "\033[0;36mRunning OpenRCT2 tests...\033[0m"
./tests --gtest_output=xml:../artifacts/test-results.xml
if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then
# Ensure test data uses LF
dos2unix testdata/keys/*
# Now run all the tests
echo -e "\033[0;36mRunning OpenRCT2 tests...\033[0m"
./tests --gtest_output=xml:../artifacts/test-results.xml
else
echo -e "\033[0;36mRunning OpenRCT2 tests...\033[0m"
ctest --output-on-failure
fi