mirror of https://github.com/ArduPilot/ardupilot
ci: switch linux/sitl compiler to 4.9
This commit is contained in:
parent
921da676db
commit
36d669a2ab
|
@ -6,12 +6,6 @@ cache:
|
||||||
- $HOME/opt
|
- $HOME/opt
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- g++-4.8
|
|
||||||
- gcc-4.8
|
|
||||||
coverity_scan:
|
coverity_scan:
|
||||||
project:
|
project:
|
||||||
name: "diydrones/ardupilot"
|
name: "diydrones/ardupilot"
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Install dependencies and configure the environment for CI build testing
|
# Install dependencies and configure the environment for CI build testing
|
||||||
|
|
||||||
set -ev
|
set -ex
|
||||||
|
|
||||||
PKGS="build-essential gawk ccache genromfs libc6-i386 \
|
PKGS="build-essential gawk ccache genromfs libc6-i386 \
|
||||||
python-argparse python-empy python-serial zlib1g-dev"
|
python-argparse python-empy python-serial zlib1g-dev gcc-4.9 g++-4.9"
|
||||||
|
|
||||||
ARM_ROOT="gcc-arm-none-eabi-4_9-2015q3"
|
ARM_ROOT="gcc-arm-none-eabi-4_9-2015q3"
|
||||||
ARM_TARBALL="$ARM_ROOT-20150921-linux.tar.bz2"
|
ARM_TARBALL="$ARM_ROOT-20150921-linux.tar.bz2"
|
||||||
|
@ -12,8 +12,11 @@ ARM_TARBALL="$ARM_ROOT-20150921-linux.tar.bz2"
|
||||||
RPI_ROOT="master"
|
RPI_ROOT="master"
|
||||||
RPI_TARBALL="$RPI_ROOT.tar.gz"
|
RPI_TARBALL="$RPI_ROOT.tar.gz"
|
||||||
|
|
||||||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
sudo apt-get -qq -y update
|
sudo apt-get -qq -y update
|
||||||
sudo apt-get -qq -y install $PKGS
|
sudo apt-get -qq -y install $PKGS
|
||||||
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90 \
|
||||||
|
--slave /usr/bin/g++ g++ /usr/bin/g++-4.9
|
||||||
|
|
||||||
pushd $HOME
|
pushd $HOME
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue