mirror of
https://github.com/eggman/rtl_ameba_gcc_sample.git
synced 2024-11-01 03: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
|
sudo: false
|
||||||
env: GCC_VER=4.9
|
env: GCC_VER=4.9
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $HOME/.ccache
|
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- build-essential
|
- build-essential
|
||||||
- ccache
|
|
||||||
- cmake
|
|
||||||
- gcc-4.9
|
|
||||||
- libc6-i836
|
|
||||||
- python-empy
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
||||||
|
@ -36,26 +27,14 @@ before_install:
|
||||||
&& wget -O gcc.tar.bz2 ${GCC_URL}
|
&& wget -O gcc.tar.bz2 ${GCC_URL}
|
||||||
&& tar -jxf gcc.tar.bz2 --strip 1
|
&& tar -jxf gcc.tar.bz2 --strip 1
|
||||||
&& exportline="export PATH=$HOME/gcc/bin:\$PATH"
|
&& exportline="export PATH=$HOME/gcc/bin:\$PATH"
|
||||||
|
&& printenv PATH
|
||||||
&& if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
|
&& if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
|
||||||
&& . ~/.profile
|
&& . ~/.profile
|
||||||
&& popd
|
&& popd
|
||||||
;
|
;
|
||||||
fi
|
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:
|
script:
|
||||||
- ccache -z
|
|
||||||
- arm-none-eabi-gcc --version
|
- arm-none-eabi-gcc --version
|
||||||
- ccache -s
|
|
||||||
- make
|
- make
|
||||||
- ccache -s
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue