mod path setting of travis

This commit is contained in:
eggman 2016-06-24 07:15:46 +09:00
parent b6de262366
commit 2f4cd652ca

View file

@ -26,15 +26,21 @@ before_install:
&& if [ "$GCC_VER" = "4.9" ]; then GCC_URL="https://launchpad.net/gcc-arm-embedded/4.9/4.9-2014-q4-major/+download/gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2" ; fi && if [ "$GCC_VER" = "4.9" ]; then GCC_URL="https://launchpad.net/gcc-arm-embedded/4.9/4.9-2014-q4-major/+download/gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2" ; fi
&& 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
&& printenv PATH
&& popd && popd
; ;
fi fi
script: install:
- export PATH=$PATH:$PWD/gcc/bin
- printenv PATH
before_script:
- arm-none-eabi-gcc --version - arm-none-eabi-gcc --version
script:
- make - make