mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
travis-ci enable ccache
This commit is contained in:
+10
@@ -41,6 +41,13 @@ before_script:
|
|||||||
- 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
|
||||||
|
# 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/g++-4.8
|
||||||
|
- ln -s /usr/bin/ccache ~/bin/gcc-4.8
|
||||||
|
- export PATH=~/bin:$PATH
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: 500
|
depth: 500
|
||||||
@@ -59,6 +66,7 @@ env:
|
|||||||
- BUILD_URI=https://px4-travis.s3.amazonaws.com/archives/Firmware/$TRAVIS_BRANCH/$TRAVIS_BUILD_ID/Firmware.zip
|
- BUILD_URI=https://px4-travis.s3.amazonaws.com/archives/Firmware/$TRAVIS_BRANCH/$TRAVIS_BUILD_ID/Firmware.zip
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- ccache -z
|
||||||
- arm-none-eabi-gcc --version
|
- arm-none-eabi-gcc --version
|
||||||
- echo 'Running Tests..' && echo -en 'travis_fold:start:script.1\\r'
|
- echo 'Running Tests..' && echo -en 'travis_fold:start:script.1\\r'
|
||||||
- make tests
|
- make tests
|
||||||
@@ -66,9 +74,11 @@ script:
|
|||||||
- echo -en 'travis_fold:end:script.1\\r'
|
- echo -en 'travis_fold:end:script.1\\r'
|
||||||
- echo 'Building NuttX..' && echo -en 'travis_fold:start:script.2\\r'
|
- echo 'Building NuttX..' && echo -en 'travis_fold:start:script.2\\r'
|
||||||
- make archives
|
- make archives
|
||||||
|
- ccache -s
|
||||||
- echo -en 'travis_fold:end:script.2\\r'
|
- echo -en 'travis_fold:end:script.2\\r'
|
||||||
- echo 'Building Firmware..' && echo -en 'travis_fold:start:script.3\\r'
|
- echo 'Building Firmware..' && echo -en 'travis_fold:start:script.3\\r'
|
||||||
- make -j6
|
- make -j6
|
||||||
|
- ccache -s
|
||||||
- echo -en 'travis_fold:end:script.3\\r'
|
- echo -en 'travis_fold:end:script.3\\r'
|
||||||
- zip Firmware.zip Images/*.px4
|
- zip Firmware.zip Images/*.px4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user