mirror of
https://github.com/eggman/rtl_ameba_gcc_sample.git
synced 2024-11-21 13:34:17 +00:00
simplify travis setting
This commit is contained in:
parent
fd36d58051
commit
b6de262366
1 changed files with 1 additions and 22 deletions
23
.travis.yml
23
.travis.yml
|
@ -11,21 +11,12 @@ matrix:
|
|||
sudo: false
|
||||
env: GCC_VER=4.9
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.ccache
|
||||
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- build-essential
|
||||
- ccache
|
||||
- cmake
|
||||
- gcc-4.9
|
||||
- libc6-i836
|
||||
- python-empy
|
||||
|
||||
before_install:
|
||||
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
||||
|
@ -36,26 +27,14 @@ before_install:
|
|||
&& wget -O gcc.tar.bz2 ${GCC_URL}
|
||||
&& tar -jxf gcc.tar.bz2 --strip 1
|
||||
&& exportline="export PATH=$HOME/gcc/bin:\$PATH"
|
||||
&& printenv PATH
|
||||
&& if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
|
||||
&& . ~/.profile
|
||||
&& popd
|
||||
;
|
||||
fi
|
||||
|
||||
before_script:
|
||||
# setup ccache
|
||||
- mkdir -p ~/bin
|
||||
- ln -s /usr/bin/ccache ~/bin/arm-none-eabi-g++
|
||||
- ln -s /usr/bin/ccache ~/bin/arm-none-eabi-gcc
|
||||
- ln -s /usr/bin/ccache ~/bin/arm-none-eabi-size
|
||||
- ln -s /usr/bin/ccache ~/bin/arm-none-eabi-objcopy
|
||||
- export PATH=~/bin:$PATH
|
||||
|
||||
|
||||
script:
|
||||
- ccache -z
|
||||
- arm-none-eabi-gcc --version
|
||||
- ccache -s
|
||||
- make
|
||||
- ccache -s
|
||||
|
||||
|
|
Loading…
Reference in a new issue