diff options
author | Daniel Agar <daniel@agar.ca> | 2015-04-17 22:27:36 -0400 |
---|---|---|
committer | Daniel Agar <daniel@agar.ca> | 2015-04-17 23:44:16 -0400 |
commit | 6af3f13a1db71a84fdc9ef8d0eb2af3cb4530a29 (patch) | |
tree | 1957c16af7ddb53f76e5bf65074c7707edcada18 | |
parent | a4c3208703e38d210a3cccb073674ea098095757 (diff) | |
download | px4-firmware-6af3f13a1db71a84fdc9ef8d0eb2af3cb4530a29.tar.gz px4-firmware-6af3f13a1db71a84fdc9ef8d0eb2af3cb4530a29.tar.bz2 px4-firmware-6af3f13a1db71a84fdc9ef8d0eb2af3cb4530a29.zip |
travis-ci enable ccache
-rw-r--r-- | .travis.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 125ce4c09..d0d7254ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,13 @@ before_script: - if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi - . ~/.profile - 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: depth: 500 @@ -59,6 +66,7 @@ env: - BUILD_URI=https://px4-travis.s3.amazonaws.com/archives/Firmware/$TRAVIS_BRANCH/$TRAVIS_BUILD_ID/Firmware.zip script: + - ccache -z - arm-none-eabi-gcc --version - echo 'Running Tests..' && echo -en 'travis_fold:start:script.1\\r' - make tests @@ -66,9 +74,11 @@ script: - echo -en 'travis_fold:end:script.1\\r' - echo 'Building NuttX..' && echo -en 'travis_fold:start:script.2\\r' - make archives + - ccache -s - echo -en 'travis_fold:end:script.2\\r' - echo 'Building Firmware..' && echo -en 'travis_fold:start:script.3\\r' - make -j6 + - ccache -s - echo -en 'travis_fold:end:script.3\\r' - zip Firmware.zip Images/*.px4 |