2014-12-05 15:54:19 +01:00
|
|
|
#!/bin/bash -e
|
2017-05-26 17:03:46 +02:00
|
|
|
|
2016-10-15 17:59:23 +02:00
|
|
|
echo "Preparing for $TRAVIS_COMMIT_RANGE"
|
|
|
|
|
2017-05-26 17:03:46 +02:00
|
|
|
. util/travis/common.sh
|
|
|
|
|
2018-03-23 11:07:19 +01:00
|
|
|
if [[ ! -z "${CLANG_FORMAT}" ]]; then
|
2017-03-25 19:12:18 +01:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2016-10-15 17:59:23 +02:00
|
|
|
needs_compile || exit 0
|
2014-12-05 15:54:19 +01:00
|
|
|
|
2018-03-23 11:07:19 +01:00
|
|
|
if [[ $PLATFORM == "Unix" ]] || [[ ! -z "${CLANG_TIDY}" ]]; then
|
|
|
|
if [[ $TRAVIS_OS_NAME == "linux" ]] || [[ ! -z "${CLANG_TIDY}" ]]; then
|
2017-05-26 17:03:46 +02:00
|
|
|
install_linux_deps
|
2016-01-29 15:15:58 +01:00
|
|
|
else
|
2017-05-26 17:03:46 +02:00
|
|
|
install_macosx_deps
|
2016-01-29 15:15:58 +01:00
|
|
|
fi
|
2015-02-28 00:05:29 +01:00
|
|
|
elif [[ $PLATFORM == "Win32" ]]; then
|
2020-03-08 21:05:12 +01:00
|
|
|
wget http://minetest.kitsunemimi.pw/mingw-w64-i686_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
|
2019-06-21 02:43:59 +02:00
|
|
|
# buildwin32.sh detects the installed toolchain automatically
|
2020-03-08 21:05:12 +01:00
|
|
|
sudo tar -xaf mingw.tar.xz -C /usr
|
2015-02-28 00:05:29 +01:00
|
|
|
elif [[ $PLATFORM == "Win64" ]]; then
|
2020-03-08 21:05:12 +01:00
|
|
|
wget http://minetest.kitsunemimi.pw/mingw-w64-x86_64_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
|
2015-02-28 00:05:29 +01:00
|
|
|
sed -e "s|%PREFIX%|x86_64-w64-mingw32|" \
|
|
|
|
-e "s|%ROOTPATH%|/usr/x86_64-w64-mingw32|" \
|
|
|
|
< util/travis/toolchain_mingw.cmake.in > util/buildbot/toolchain_mingw64.cmake
|
2020-03-08 21:05:12 +01:00
|
|
|
sudo tar -xaf mingw.tar.xz -C /usr
|
2014-12-05 15:54:19 +01:00
|
|
|
fi
|