on v0.5.0 help sign in
bat/ci/before_install.bash
29 lines 621 B history raw
1#!/usr/bin/env bash
3set -ex
5if [ "$TRAVIS_OS_NAME" != linux ]; then
6 exit 0
7fi
9sudo apt-get update
11# needed for musl targets
12sudo apt-get install -y musl-tools
14# needed to build deb packages
15sudo apt-get install -y fakeroot
17# needed for i686 linux gnu target
18if [[ $TARGET == i686-unknown-linux-gnu ]]; then
19 sudo apt-get install -y gcc-multilib
20fi
22# needed for cross-compiling for arm
23if [[ $TARGET == arm-unknown-linux-gnueabihf ]]; then
24 sudo apt-get install -y \
25 gcc-4.8-arm-linux-gnueabihf \
26 binutils-arm-linux-gnueabihf \
27 libc6-armhf-cross \
28 libc6-dev-armhf-cross
29fi