Browse Source

Changes to travis for cmake build.

sbg
James Goppert 10 years ago
parent
commit
b7699bff5a
  1. 68
      .travis.yml

68
.travis.yml

@ -73,38 +73,46 @@ script:
- ccache -z - ccache -z
- arm-none-eabi-gcc --version - arm-none-eabi-gcc --version
- echo 'Building POSIX Firmware..' && echo -en 'travis_fold:start:script.1\\r' - echo 'Building POSIX Firmware..' && echo -en 'travis_fold:start:script.1\\r'
- make posix -j4 - make posix_sitl_simple
- ccache -s
- echo -en 'travis_fold:end:script.1\\r'
- echo 'Running Tests..' && echo -en 'travis_fold:start:script.2\\r' - echo 'Running Tests..' && echo -en 'travis_fold:start:script.2\\r'
- make tests - cd build_posix_sitl_simple && ctest
- cat src/modules/systemlib/mixer/mixer_multirotor.generated.h - echo 'Building NuttX Firmware..' && echo -en 'travis_fold:start:script.3\\r'
- echo -en 'travis_fold:end:script.2\\r' - make nuttx_px4fmu-v2_simple
- echo 'Building NuttX..' && echo -en 'travis_fold:start:script.3\\r' - echo 'Running Tests..' && echo -en 'travis_fold:start:script.4\\r'
- make archives - cd nuttx_px4fmu-v2_simple && ctest
- ccache -s
- echo -en 'travis_fold:end:script.3\\r'
- echo 'Building NuttX Firmware..' && echo -en 'travis_fold:start:script.4\\r'
- make -j4
- make size
- ccache -s
- echo -en 'travis_fold:end:script.4\\r'
- zip Firmware.zip Images/*.px4
after_script: #- make posix -j4
- git clone git://github.com/PX4/CI-Tools.git #- ccache -s
- ./CI-Tools/s3cmd-configure #- echo -en 'travis_fold:end:script.1\\r'
# upload newest build for this branch with s3 index #- echo 'Running Tests..' && echo -en 'travis_fold:start:script.2\\r'
- ./CI-Tools/s3cmd-put Images/px4*.px4 CI-Tools/directory/index.html Firmware/$TRAVIS_BRANCH/ #- make tests
# archive newest build by date with s3 index #- cat src/modules/systemlib/mixer/mixer_multirotor.generated.h
- ./CI-Tools/s3cmd-put Firmware.zip archives/Firmware/$TRAVIS_BRANCH/$TRAVIS_BUILD_ID/ #- echo -en 'travis_fold:end:script.2\\r'
- ./CI-Tools/s3cmd-put CI-Tools/directory/index.html archives/Firmware/$TRAVIS_BRANCH/ #- echo 'Building NuttX..' && echo -en 'travis_fold:start:script.3\\r'
# upload top level index.html and timestamp.html #- make archives
- ./CI-Tools/s3cmd-put CI-Tools/index.html index.html #- ccache -s
- ./CI-Tools/s3cmd-put CI-Tools/timestamp.html timestamp.html #- echo -en 'travis_fold:end:script.3\\r'
- echo "" #- echo 'Building NuttX Firmware..' && echo -en 'travis_fold:start:script.4\\r'
- echo "Binaries have been posted to:" #- make -j4
- echo https://px4-travis.s3.amazonaws.com/archives/Firmware/$TRAVIS_BRANCH/$TRAVIS_BUILD_ID/Firmware.zip #- make size
#- ccache -s
#- echo -en 'travis_fold:end:script.4\\r'
#- zip Firmware.zip Images/*.px4
#after_script:
#- git clone git://github.com/PX4/CI-Tools.git
#- ./CI-Tools/s3cmd-configure
## upload newest build for this branch with s3 index
#- ./CI-Tools/s3cmd-put Images/px4*.px4 CI-Tools/directory/index.html Firmware/$TRAVIS_BRANCH/
## archive newest build by date with s3 index
#- ./CI-Tools/s3cmd-put Firmware.zip archives/Firmware/$TRAVIS_BRANCH/$TRAVIS_BUILD_ID/
#- ./CI-Tools/s3cmd-put CI-Tools/directory/index.html archives/Firmware/$TRAVIS_BRANCH/
## upload top level index.html and timestamp.html
#- ./CI-Tools/s3cmd-put CI-Tools/index.html index.html
#- ./CI-Tools/s3cmd-put CI-Tools/timestamp.html timestamp.html
#- echo ""
#- echo "Binaries have been posted to:"
#- echo https://px4-travis.s3.amazonaws.com/archives/Firmware/$TRAVIS_BRANCH/$TRAVIS_BUILD_ID/Firmware.zip
deploy: deploy:
provider: releases provider: releases

Loading…
Cancel
Save