Travis: make arm compiler install unconditional

This commit is contained in:
Andrew Tridgell 2015-04-05 10:57:17 -07:00
parent 1315ed7ddf
commit 7048836d1e

View File

@ -6,6 +6,7 @@ set -v
CWD=$(pwd)
OPT="$HOME/opt"
echo "PATH=$PATH"
BASE_PKGS="gawk make git arduino-core curl"
SITL_PKGS="g++ python-pip python-matplotlib python-serial python-wxgtk2.8 python-scipy python-opencv python-numpy python-pyparsing ccache python-empy"
@ -71,24 +72,14 @@ fi
mkdir -p $OPT
if [ ! -d $OPT/$ARM_ROOT ]; then
(
cd $OPT;
wget $ARM_TARBALL_URL;
tar xjf ${ARM_TARBALL};
rm ${ARM_TARBALL};
)
fi
cd $OPT;
wget $ARM_TARBALL_URL
tar xjf ${ARM_TARBALL}
rm -f ${ARM_TARBALL}
exportline="export PATH=$OPT/$ARM_ROOT/bin:\$PATH";
if ! grep -Fxq "$exportline" ~/.profile ; then
echo $exportline >> ~/.profile
$exportline
fi
echo $exportline >> ~/.profile
exportline2="export PATH=$CWD/$ARDUPILOT_TOOLS:\$PATH";
if ! grep -Fxq "$exportline2" ~/.profile ; then
echo $exportline2 >> ~/.profile
$exportline2
fi
echo $exportline2 >> ~/.profile
$exportline2