2014-12-05 06:54:19 -08:00
|
|
|
#!/bin/bash -e
|
2017-05-26 08:03:46 -07:00
|
|
|
|
2016-10-15 08:59:23 -07:00
|
|
|
echo "Preparing for $TRAVIS_COMMIT_RANGE"
|
|
|
|
|
2017-05-26 08:03:46 -07:00
|
|
|
. util/travis/common.sh
|
|
|
|
|
|
|
|
if [[ "${LINT}" == "1" ]]; then
|
2017-03-25 11:12:18 -07:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2016-10-15 08:59:23 -07:00
|
|
|
needs_compile || exit 0
|
2014-12-05 06:54:19 -08:00
|
|
|
|
2018-04-01 14:57:55 -07:00
|
|
|
if [[ $PLATFORM == "Unix" ]] || [[ $CLANG_TIDY == "1" ]]; then
|
|
|
|
if [[ $TRAVIS_OS_NAME == "linux" ]] || [[ $CLANG_TIDY == "1" ]]; then
|
2017-05-26 08:03:46 -07:00
|
|
|
install_linux_deps
|
2016-01-29 06:15:58 -08:00
|
|
|
else
|
2017-05-26 08:03:46 -07:00
|
|
|
install_macosx_deps
|
2016-01-29 06:15:58 -08:00
|
|
|
fi
|
2015-02-27 15:05:29 -08:00
|
|
|
elif [[ $PLATFORM == "Win32" ]]; then
|
2017-05-26 08:03:46 -07: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-27 15:05:29 -08: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 08:03:46 -07: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-27 15:05:29 -08: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 06:54:19 -08:00
|
|
|
sudo 7z x -y -o/usr mingw.7z
|
|
|
|
fi
|