sfizz/.travis/before_install.sh

35 lines
1 KiB
Bash
Raw Normal View History

2019-09-18 09:13:36 +02:00
#!/bin/bash
2019-12-22 14:22:40 +01:00
set -ex
2020-02-02 14:43:39 +01:00
. .travis/environment.sh
2019-09-18 09:13:36 +02:00
2019-12-22 14:22:40 +01:00
cmake_dir="cmake-3.13.0-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}"
cmake_arc="${cmake_dir}.tar.gz"
2019-12-22 14:27:44 +01:00
cmake_url="https://github.com/sfztools/cmake/releases/download/${TRAVIS_OS_NAME}/${cmake_arc}"
2019-12-22 14:22:40 +01:00
2020-02-02 21:25:08 +01:00
if [[ ${CROSS_COMPILE} == "mingw32" || ${CROSS_COMPILE} == "mingw64" ]]; then
2020-02-02 14:43:39 +01:00
buildenv bash -c "echo Hello from container" # ensure to start the container
docker cp "$container":/etc/pacman.conf pacman.conf
cat >>pacman.conf <<EOF
[multilib]
Include = /etc/pacman.d/mirrorlist
[mingw-w64]
SigLevel = Optional TrustAll
Server = https://github.com/jpcima/arch-mingw-w64/releases/download/repo.\$arch/
EOF
docker cp pacman.conf "$container":/etc/pacman.conf
rm -f pacman.conf
elif [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
2019-12-22 14:22:40 +01:00
wget -q ${cmake_url}
tar xzf ${cmake_arc}
cd ${TRAVIS_BUILD_DIR}/${cmake_dir}
sudo cp bin/* /usr/local/bin/
sudo cp -r share/* /usr/local/share/
elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
2019-09-21 18:00:52 +02:00
sudo ln -s /usr/local /opt/local
2019-09-18 09:13:36 +02:00
brew update
brew upgrade cmake
2019-09-22 01:20:53 +02:00
brew install jack
2019-09-18 09:13:36 +02:00
fi