2016-06-22 14:25:28 +00:00
language : c
matrix :
fast_finish : true
include :
- os : linux
sudo : false
env : GCC_VER=4.8
- os : linux
sudo : false
env : GCC_VER=4.9
2016-06-24 00:35:34 +00:00
- os : linux
sudo : false
env : GCC_VER=5.0
2016-06-22 14:25:28 +00:00
addons :
apt :
packages :
2016-06-24 01:23:23 +00:00
- libc6-i386
2016-06-22 14:25:28 +00:00
before_install :
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
pushd .
2016-06-24 00:35:34 +00:00
&& cd ~ && mkdir gcc && cd gcc
2016-06-22 14:25:28 +00:00
&& if [ "$GCC_VER" = "4.8" ]; then GCC_URL="https://launchpadlibrarian.net/186124160/gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2" ; fi
2016-06-24 00:35:34 +00:00
&& if [ "$GCC_VER" = "4.9" ]; then GCC_URL="https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update/+download/gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2" ; fi
2016-06-24 00:44:52 +00:00
&& if [ "$GCC_VER" = "5.0" ]; then GCC_URL="https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2" ; fi
2016-06-22 14:25:28 +00:00
&& wget -O gcc.tar.bz2 ${GCC_URL}
&& tar -jxf gcc.tar.bz2 --strip 1
2016-06-24 00:40:07 +00:00
&& exportline="export PATH=\$HOME/gcc/bin:\$PATH"
2016-06-22 14:25:28 +00:00
&& if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
&& . ~/.profile
&& popd
;
2016-06-22 22:10:37 +00:00
fi
2016-06-22 14:25:28 +00:00
2016-06-23 22:15:46 +00:00
before_script :
2016-06-22 22:10:37 +00:00
- arm-none-eabi-gcc --version
2016-06-23 22:15:46 +00:00
script :
2016-06-22 22:10:37 +00:00
- make
2016-06-24 00:53:41 +00:00
notifications :
email : false