mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
travis-ci only build sitl on OSX
This commit is contained in:
+14
-17
@@ -60,9 +60,8 @@ before_install:
|
|||||||
elif [ "${TRAVIS_OS_NAME}" = "osx" ]; then
|
elif [ "${TRAVIS_OS_NAME}" = "osx" ]; then
|
||||||
brew tap PX4/homebrew-px4
|
brew tap PX4/homebrew-px4
|
||||||
&& brew update; brew update
|
&& brew update; brew update
|
||||||
&& brew install cmake ninja astyle gcc-arm-none-eabi
|
&& brew install cmake ninja
|
||||||
&& brew install genromfs
|
&& brew install genromfs
|
||||||
&& brew install kconfig-frontends
|
|
||||||
&& sudo easy_install pip
|
&& sudo easy_install pip
|
||||||
&& sudo pip install pyserial empy
|
&& sudo pip install pyserial empy
|
||||||
;
|
;
|
||||||
@@ -93,24 +92,22 @@ env:
|
|||||||
- PX4_AWS_BUCKET=px4-travis
|
- PX4_AWS_BUCKET=px4-travis
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- git submodule update --init --recursive
|
- git submodule update --quiet --init --recursive
|
||||||
- make check_format
|
|
||||||
- arm-none-eabi-gcc --version
|
|
||||||
- echo 'Building POSIX Firmware..' && make posix_sitl_default
|
- echo 'Building POSIX Firmware..' && make posix_sitl_default
|
||||||
- echo 'Running Tests..' && make posix_sitl_default test
|
- echo 'Running Tests..' && make posix_sitl_default test
|
||||||
- echo 'Running Unittests..' && cd unittests && ./run_tests.sh
|
- echo 'Running Unittests..' && cd unittests && ./run_tests.sh
|
||||||
- cd ..
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
||||||
- echo 'Building NuttX px4fmu-v1 Firmware..' && make px4fmu-v1_default
|
cd ${TRAVIS_BUILD_DIR}
|
||||||
- echo 'Building NuttX px4fmu-v2 Firmware..' && make px4fmu-v2_default
|
&& make check_format
|
||||||
# Only provide UAVCAN firmware binaries for Pixracer and Pixhawk 3
|
&& arm-none-eabi-gcc --version
|
||||||
- echo 'Building UAVCAN node firmware..' && git clone https://github.com/thiemar/vectorcontrol
|
&& echo 'Building NuttX px4fmu-v1 Firmware..' && make px4fmu-v1_default
|
||||||
- cd vectorcontrol
|
&& echo 'Building NuttX px4fmu-v2 Firmware..' && make px4fmu-v2_default
|
||||||
- BOARD=s2740vc_1_0 make && BOARD=px4esc_1_6 make
|
&& echo 'Building UAVCAN node firmware..' && (git clone https://github.com/thiemar/vectorcontrol && cd vectorcontrol && BOARD=s2740vc_1_0 make -s && BOARD=px4esc_1_6 make -s && ../Tools/uavcan_copy.sh)
|
||||||
- ../Tools/uavcan_copy.sh
|
&& echo 'Building NuttX px4fmu-v4 Firmware..' && make px4fmu-v4_default
|
||||||
- cd ..
|
&& echo 'Building NuttX px4-stm32f4discovery Firmware..' && make px4-stm32f4discovery_default
|
||||||
- echo 'Building NuttX px4fmu-v4 Firmware..' && make px4fmu-v4_default
|
&& echo 'Running Tests..' && make px4fmu-v2_default test
|
||||||
- echo 'Building NuttX px4-stm32f4discovery Firmware..' && make px4-stm32f4discovery_default
|
;
|
||||||
- echo 'Running Tests..' && make px4fmu-v2_default test
|
fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user