ardupilot/Tools/scripts/install-apt-ci.sh
Francisco Ferreira 37b9e76737 Tools: update CI scripts
Remove old CMake PPA (Trusty has a more recent version)
Remove ccache from APT install since we build it from source
Update ccache to version 3.4.2
Add extra checks for compiler presence
Since no ccache DB is saved between builds we don't limit its size anymore and Make builds can use it
2018-08-30 16:34:56 -07:00

31 lines
724 B
Bash
Executable File

#!/bin/bash
# Install APT packages for CI build testing
set -ex
PKGS=" \
build-essential \
gawk \
genromfs \
libc6-i386 \
libxml2-dev \
libxslt1-dev \
python-pip \
python-dev \
zlib1g-dev \
gcc-4.9 \
g++-4.9 \
cmake3 \
cmake3-data \
"
read -r UBUNTU_CODENAME <<<$(lsb_release -c -s)
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
#wget -q -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
#sudo add-apt-repository "deb http://llvm.org/apt/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-3.7 main" -y
sudo apt-get -qq -y --force-yes update
sudo apt-get -qq -y --force-yes remove clang llvm
sudo apt-get -y --force-yes install $PKGS