mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
39c54e13c3
PR created under the employment of EvidenceBKidscode * Variables to set git repositories urls (allows to build from another repo) * Variables to set git branch to build from (allows to build from non-master branch) * Variables to change built name * Make -j uses the proper number of processors (autodetect) * Changed toolchain from win32 to adpat it to non-debian distros
34 lines
1003 B
Bash
Executable File
34 lines
1003 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
echo "Preparing for $TRAVIS_COMMIT_RANGE"
|
|
|
|
. util/travis/common.sh
|
|
|
|
if [[ ! -z "${CLANG_FORMAT}" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
needs_compile || exit 0
|
|
|
|
if [[ $PLATFORM == "Unix" ]] || [[ ! -z "${CLANG_TIDY}" ]]; then
|
|
if [[ $TRAVIS_OS_NAME == "linux" ]] || [[ ! -z "${CLANG_TIDY}" ]]; then
|
|
install_linux_deps
|
|
else
|
|
install_macosx_deps
|
|
fi
|
|
elif [[ $PLATFORM == "Win32" ]]; then
|
|
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
|
|
# buildwin32.sh detects the installed toolchain automatically
|
|
sudo 7z x -y -o/usr mingw.7z
|
|
elif [[ $PLATFORM == "Win64" ]]; then
|
|
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
|
|
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
|
|
sudo 7z x -y -o/usr mingw.7z
|
|
fi
|