mirror of
https://github.com/eggman/ameba-gcc-sample-rtos.git
synced 2024-11-23 12:14:15 +00:00
add travis setting
This commit is contained in:
parent
18c31d5e01
commit
724cc50ce8
1 changed files with 45 additions and 0 deletions
45
.travis.yml
Normal file
45
.travis.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
|
||||||
|
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
|
||||||
|
- os: linux
|
||||||
|
sudo: false
|
||||||
|
env: GCC_VER=5.0
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libc6-i386
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
||||||
|
pushd .
|
||||||
|
&& cd ~ && mkdir gcc && cd gcc
|
||||||
|
&& if [ "$GCC_VER" = "4.8" ]; then GCC_URL="https://launchpadlibrarian.net/186124160/gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2" ; fi
|
||||||
|
&& 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
|
||||||
|
&& 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
|
||||||
|
&& wget -O gcc.tar.bz2 ${GCC_URL}
|
||||||
|
&& tar -jxf gcc.tar.bz2 --strip 1
|
||||||
|
&& exportline="export PATH=\$HOME/gcc/bin:\$PATH"
|
||||||
|
&& if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
|
||||||
|
&& . ~/.profile
|
||||||
|
&& popd
|
||||||
|
;
|
||||||
|
fi
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- arm-none-eabi-gcc --version
|
||||||
|
|
||||||
|
script:
|
||||||
|
- make
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email: false
|
Loading…
Reference in a new issue