2018-08-13 11:14:15 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew update
|
2018-08-13 14:24:40 -04:00
|
|
|
brew install yarn --without-node
|
|
|
|
brew install jq zip
|
2018-08-13 11:14:15 -04:00
|
|
|
else
|
2018-08-31 10:53:36 -04:00
|
|
|
sudo apt-get update
|
2018-08-13 11:14:15 -04:00
|
|
|
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm
|
2018-10-04 18:05:05 -04:00
|
|
|
if [[ "$BUILDARCH" == "ia32" ]]; then
|
|
|
|
sudo dpkg --add-architecture i386
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install libc6-dev-i386 gcc-multilib g++-multilib
|
|
|
|
sudo apt-get install libx11-dev:i386 libxkbfile-dev:i386
|
2018-10-10 11:20:56 -04:00
|
|
|
elif [[ $BUILDARCH == "arm64" ]]; then
|
|
|
|
# Use the default C / C++ compilers,
|
|
|
|
# because some makefiles default to CC:=gcc:
|
|
|
|
export CC=/usr/bin/cc
|
|
|
|
export CXX=/usr/bin/c++
|
2018-10-04 18:05:05 -04:00
|
|
|
fi
|
2018-10-10 11:20:56 -04:00
|
|
|
fi
|