Fix msvc build
[carla.git] / .travis / before_install.sh
blob16b479e37444b29d1263f98ecd4d7c6576de18d0
1 #!/bin/bash
3 set -e
5 if [ "${TARGET}" = "macos-native" ] || [ "${TARGET}" = "macos-universal" ]; then
6 exit 0
7 fi
9 if [ "${TARGET}" = "macos" ]; then
10 # sudo rm /etc/apt/sources.list.d/cassandra.list
11 # sudo rm /etc/apt/sources.list.d/chris-lea-redis-server.list
12 # sudo rm /etc/apt/sources.list.d/computology_apt-backport.list
13 # sudo rm /etc/apt/sources.list.d/couchdb.list
14 # sudo rm /etc/apt/sources.list.d/docker.list
15 # sudo rm /etc/apt/sources.list.d/github_git-lfs.list
16 # sudo rm /etc/apt/sources.list.d/git-ppa.list
17 sudo rm /etc/apt/sources.list.d/google-chrome.list
18 # sudo rm /etc/apt/sources.list.d/heroku-toolbelt.list
19 # sudo rm /etc/apt/sources.list.d/mongodb-3.4.list
20 # sudo rm /etc/apt/sources.list.d/openjdk-r-java-ppa.list
21 # sudo rm /etc/apt/sources.list.d/pgdg.list
22 # sudo rm /etc/apt/sources.list.d/pollinate.list
23 # sudo rm /etc/apt/sources.list.d/rabbitmq_rabbitmq-server.list
24 # sudo rm /etc/apt/sources.list.d/webupd8team-java-ppa.list
25 sudo add-apt-repository -y ppa:kxstudio-debian/kxstudio
26 sudo add-apt-repository -y ppa:kxstudio-debian/mingw
27 sudo add-apt-repository -y ppa:kxstudio-debian/toolchain
28 sudo apt-get update -qq
29 sudo apt-get install kxstudio-repos
30 sudo apt-get update -qq
31 exit 0
34 if [ "${TARGET}" = "linux" ] || [ "${TARGET}" = "win32" ] || [ "${TARGET}" = "win64" ]; then
35 wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
36 sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
37 sudo dpkg --add-architecture i386
38 sudo apt-get update -qq
39 sudo apt-get install -y -o APT::Immediate-Configure=false libc6 libc6:i386 libgcc-s1:i386
40 sudo apt-get install -y -f
41 exit 0