23 lines
577 B
Bash
Executable File
23 lines
577 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
msg() { echo -e "\x1b[1;32mINFO: \x1b[37m$*\x1b[0m"; }
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
msg "Running OSX setup"
|
|
brew update
|
|
# Run one macOS build with pkg-config available (pulled in by qt), and the
|
|
# other (unity=on) without pkg-config
|
|
brew install qt ldc llvm ninja
|
|
if [[ "$MESON_ARGS" =~ .*unity=on.* ]]; then
|
|
which pkg-config && rm -f $(which pkg-config)
|
|
fi
|
|
python3 -m pip install jsonschema
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
msg "Running Linux setup"
|
|
docker pull mesonbuild/eoan
|
|
fi
|
|
|
|
msg "Setup finished"
|