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
|
2017-05-26 17:03:46 +02:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install p7zip-full
|
|
|
|
wget http://minetest.kitsunemimi.pw/mingw-w64-i686_7.1.1_ubuntu14.04.7z -O mingw.7z
|
2015-02-28 00:05:29 +01:00
|
|
|
sed -e "s|%PREFIX%|i686-w64-mingw32|" \
|
|
|
|
-e "s|%ROOTPATH%|/usr/i686-w64-mingw32|" \
|
|
|
|
< util/travis/toolchain_mingw.cmake.in > util/buildbot/toolchain_mingw.cmake
|
|
|
|
sudo 7z x -y -o/usr mingw.7z
|
|
|
|
elif [[ $PLATFORM == "Win64" ]]; then
|
2017-05-26 17:03:46 +02:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install p7zip-full
|
|
|
|
wget http://minetest.kitsunemimi.pw/mingw-w64-x86_64_7.1.1_ubuntu14.04.7z -O mingw.7z
|
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
|
2014-12-05 15:54:19 +01:00
|
|
|
sudo 7z x -y -o/usr mingw.7z
|
|
|
|
fi
|