2013-01-03 23:09:27 +08:00
|
|
|
language: c
|
|
|
|
|
2013-03-17 14:08:31 +08:00
|
|
|
notifications:
|
|
|
|
email: false
|
2013-01-03 23:09:27 +08:00
|
|
|
|
|
|
|
before_script:
|
2013-03-17 14:08:31 +08:00
|
|
|
# travis has changed to 64-bit and we require 32-bit compatibility libraries
|
2013-05-05 05:45:41 +08:00
|
|
|
- sudo apt-get update
|
2017-11-01 23:45:17 +08:00
|
|
|
# clang
|
2019-08-18 07:30:29 +08:00
|
|
|
- "sudo apt-get -qq install gcc-multilib libc6:i386 libgcc1:i386 libstdc++5:i386 libstdc++6:i386 libsdl-dev scons || true"
|
2017-11-01 23:45:17 +08:00
|
|
|
# - sudo apt-get -qq install gcc-arm-none-eabi
|
|
|
|
# - "[ $RTT_TOOL_CHAIN = 'sourcery-arm' ] && export RTT_EXEC_PATH=/usr/bin && arm-none-eabi-gcc --version || true"
|
2017-11-01 07:35:43 +08:00
|
|
|
# - "[ $RTT_TOOL_CHAIN = 'sourcery-arm' ] && curl -s https://sourcery.mentor.com/public/gnu_toolchain/arm-none-eabi/arm-2014.05-28-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 | sudo tar xjf - -C /opt && export RTT_EXEC_PATH=/opt/arm-2014.05/bin && /opt/arm-2014.05/bin/arm-none-eabi-gcc --version || true"
|
2018-08-04 17:38:53 +08:00
|
|
|
- "[ $RTT_TOOL_CHAIN = 'sourcery-arm' ] && wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/arm-2017q2-v6/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 && sudo tar xjf gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 -C /opt && export RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-6-2017-q2-update/bin && /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc --version || true"
|
2019-08-16 14:13:26 +08:00
|
|
|
- "[ $RTT_TOOL_CHAIN = 'sourcery-mips' ] && wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.1/mips-2016.05-7-mips-sde-elf-i686-pc-linux-gnu.tar.bz2 && sudo tar xjf mips-2016.05-7-mips-sde-elf-i686-pc-linux-gnu.tar.bz2 -C /opt && export RTT_EXEC_PATH=/opt/mips-2016.05/bin && /opt/mips-2016.05/bin/mips-sde-elf-gcc --version || true"
|
2017-11-01 07:35:43 +08:00
|
|
|
# - "[ $RTT_TOOL_CHAIN = 'sourcery-ppc' ] && curl -s https://sourcery.mentor.com/public/gnu_toolchain/powerpc-eabi/freescale-2011.03-39-powerpc-eabi-i686-pc-linux-gnu.tar.bz2 | sudo tar xjf - -C /opt && export RTT_EXEC_PATH=/opt/freescale-2011.03/bin && /opt/freescale-2011.03/bin/powerpc-eabi-gcc --version || true"
|
|
|
|
# - "[ $RTT_TOOL_CHAIN = 'atmel-avr32' ] && curl -s http://www.atmel.com/images/avr32-gnu-toolchain-3.4.1.348-linux.any.x86.tar.gz | sudo tar xzf - -C /opt && export RTT_EXEC_PATH=/opt/avr32-gnu-toolchain-linux_x86/bin && /opt/avr32-gnu-toolchain-linux_x86/bin/avr32-gcc --version && curl -sO http://www.atmel.com/images/avr-headers-3.2.3.970.zip && unzip -qq avr-headers-3.2.3.970.zip -d bsp/$RTT_BSP || true"
|
2013-01-03 23:09:27 +08:00
|
|
|
- export RTT_ROOT=`pwd`
|
2013-09-07 16:32:50 +08:00
|
|
|
- "[ x$RTT_CC == x ] && export RTT_CC='gcc' || true"
|
2013-01-03 23:09:27 +08:00
|
|
|
|
|
|
|
env:
|
2017-11-01 07:35:43 +08:00
|
|
|
# - RTT_BSP='simulator' RTT_CC='clang-analyze' RTT_EXEC_PATH=/usr/share/clang/scan-build
|
2014-11-02 08:34:20 +08:00
|
|
|
- RTT_BSP='CME_M7' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-09-02 11:21:03 +08:00
|
|
|
- RTT_BSP='apollo2' RTT_TOOL_CHAIN='sourcery-arm'
|
2015-05-04 16:44:06 +08:00
|
|
|
- RTT_BSP='asm9260t' RTT_TOOL_CHAIN='sourcery-arm'
|
2014-11-02 08:34:20 +08:00
|
|
|
- RTT_BSP='at91sam9260' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-02-08 15:27:53 +08:00
|
|
|
- RTT_BSP='allwinner_tina' RTT_TOOL_CHAIN='sourcery-arm'
|
2017-11-01 07:35:43 +08:00
|
|
|
# - RTT_BSP='avr32uc3b0' RTT_TOOL_CHAIN='atmel-avr32'
|
2013-03-17 21:26:03 +08:00
|
|
|
# - RTT_BSP='bf533' # no scons
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='efm32' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
# - RTT_BSP='es32f0334' RTT_TOOL_CHAIN='sourcery-arm' # not support gcc
|
|
|
|
# - RTT_BSP='es32f0654' RTT_TOOL_CHAIN='sourcery-arm' # not support gcc
|
2019-04-05 12:57:13 +08:00
|
|
|
- RTT_BSP='gd32e230k-start' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='gd32303e-eval' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='gd32450z-eval' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-09-11 08:35:03 +08:00
|
|
|
- RTT_BSP='gkipc' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-06-12 15:01:12 +08:00
|
|
|
- RTT_BSP='imx6sx/cortex-a9' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='imxrt/imxrt1052-atk-commander' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='imxrt/imxrt1052-fire-pro' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='imxrt/imxrt1052-nxp-evk' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-03-14 10:34:40 +08:00
|
|
|
- RTT_BSP='lm3s8962' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='lm3s9b9x' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='lm4f232' RTT_TOOL_CHAIN='sourcery-arm'
|
2014-07-21 22:04:06 +08:00
|
|
|
- RTT_BSP='tm4c129x' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='lpc43xx/M4' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-03-14 10:34:40 +08:00
|
|
|
- RTT_BSP='lpc176x' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='lpc178x' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='lpc408x' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-05-14 15:26:18 +08:00
|
|
|
- RTT_BSP='lpc1114' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
# - RTT_BSP='lpc824' RTT_TOOL_CHAIN='sourcery-arm' # not support gcc
|
2019-03-14 10:34:40 +08:00
|
|
|
- RTT_BSP='lpc2148' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='lpc2478' RTT_TOOL_CHAIN='sourcery-arm'
|
2017-10-31 10:41:02 +08:00
|
|
|
- RTT_BSP='lpc5410x' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='lpc54114-lite' RTT_TOOL_CHAIN='sourcery-arm'
|
2017-11-01 10:40:34 +08:00
|
|
|
# - RTT_BSP='lpc54608-LPCXpresso' RTT_TOOL_CHAIN='sourcery-arm'
|
2013-03-17 21:26:03 +08:00
|
|
|
- RTT_BSP='ls1bdev' RTT_TOOL_CHAIN='sourcery-mips'
|
2015-07-10 09:38:20 +08:00
|
|
|
- RTT_BSP='ls1cdev' RTT_TOOL_CHAIN='sourcery-mips'
|
2013-03-17 21:26:03 +08:00
|
|
|
# - RTT_BSP='m16c62p' # m32c
|
2019-03-14 10:34:40 +08:00
|
|
|
- RTT_BSP='mb9bf500r' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='mb9bf506r' RTT_TOOL_CHAIN='sourcery-arm'
|
2014-07-21 07:00:47 +08:00
|
|
|
- RTT_BSP='mb9bf618s' RTT_TOOL_CHAIN='sourcery-arm'
|
2014-11-02 08:34:20 +08:00
|
|
|
- RTT_BSP='mb9bf568r' RTT_TOOL_CHAIN='sourcery-arm'
|
2013-03-17 21:26:03 +08:00
|
|
|
# - RTT_BSP='microblaze' # no scons
|
2019-03-14 10:34:40 +08:00
|
|
|
- RTT_BSP='mini2440' RTT_TOOL_CHAIN='sourcery-arm'
|
2013-02-02 19:20:16 +08:00
|
|
|
# - RTT_BSP='mini4020' # no scons
|
2019-05-14 15:26:18 +08:00
|
|
|
# - RTT_BSP='mm32l07x' # not support gcc
|
2013-03-17 21:26:03 +08:00
|
|
|
# - RTT_BSP='nios_ii' # no scons
|
2018-09-02 11:53:14 +08:00
|
|
|
- RTT_BSP='nuvoton_nuc472' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-09-02 11:45:03 +08:00
|
|
|
- RTT_BSP='nuvoton_m05x' RTT_TOOL_CHAIN='sourcery-arm'
|
2013-03-17 21:26:03 +08:00
|
|
|
# - RTT_BSP='pic32ethernet' # no scons
|
2017-11-05 23:14:07 +08:00
|
|
|
- RTT_BSP='qemu-vexpress-a9' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-09-02 12:15:39 +08:00
|
|
|
- RTT_BSP='qemu-vexpress-gemini' RTT_TOOL_CHAIN='sourcery-arm'
|
2013-02-02 19:20:16 +08:00
|
|
|
- RTT_BSP='sam7x' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
# - RTT_BSP='simulator' # x86
|
2019-06-12 15:01:12 +08:00
|
|
|
- RTT_BSP='stm32/stm32f072-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-03 13:41:55 +08:00
|
|
|
- RTT_BSP='stm32/stm32f091-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-11-29 17:10:11 +08:00
|
|
|
- RTT_BSP='stm32/stm32f103-atk-nano' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-03-14 10:34:40 +08:00
|
|
|
- RTT_BSP='stm32/stm32f103-atk-warshipv3' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-19 09:39:17 +08:00
|
|
|
- RTT_BSP='stm32/stm32f103-dofly-lyc8' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='stm32/stm32f103-dofly-M3S' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-11-29 17:10:11 +08:00
|
|
|
- RTT_BSP='stm32/stm32f103-fire-arbitrary' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-19 09:39:17 +08:00
|
|
|
- RTT_BSP='stm32/stm32f103-hw100k-ibox' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='stm32/stm32f103-mini-system' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-06-12 15:01:12 +08:00
|
|
|
- RTT_BSP='stm32/stm32f103-yf-ufun' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-02-15 11:41:18 +08:00
|
|
|
- RTT_BSP='stm32/stm32f107-uc-eval' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='stm32/stm32f401-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-03-14 10:34:40 +08:00
|
|
|
- RTT_BSP='stm32/stm32f405-smdz-breadfruit' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-11-29 17:10:11 +08:00
|
|
|
- RTT_BSP='stm32/stm32f407-atk-explorer' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-12-28 14:35:10 +08:00
|
|
|
- RTT_BSP='stm32/stm32f407-st-discovery' RTT_TOOL_CHAIN='sourcery-arm'
|
2020-03-21 08:51:18 +08:00
|
|
|
- RTT_BSP='stm32/stm32f410-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-08 14:53:02 +08:00
|
|
|
- RTT_BSP='stm32/stm32f411-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2020-03-03 09:03:41 +08:00
|
|
|
- RTT_BSP='stm32/stm32f411-weact-MiniF4' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-11-11 23:04:40 +08:00
|
|
|
- RTT_BSP='stm32/stm32f427-robomaster-a' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-12-28 14:35:10 +08:00
|
|
|
- RTT_BSP='stm32/stm32f429-armfly-v6' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-11-29 17:10:11 +08:00
|
|
|
- RTT_BSP='stm32/stm32f429-atk-apollo' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='stm32/stm32f429-fire-challenger' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-10-19 22:15:30 +08:00
|
|
|
- RTT_BSP='stm32/stm32f429-st-disco' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-14 18:29:20 +08:00
|
|
|
- RTT_BSP='stm32/stm32f446-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='stm32/stm32f469-st-disco' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-19 09:39:17 +08:00
|
|
|
- RTT_BSP='stm32/stm32f746-st-disco' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-12-28 14:35:10 +08:00
|
|
|
- RTT_BSP='stm32/stm32f767-atk-apollo' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='stm32/stm32f767-fire-challenger' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-19 09:39:17 +08:00
|
|
|
- RTT_BSP='stm32/stm32f767-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-22 15:13:24 +08:00
|
|
|
- RTT_BSP='stm32/stm32g071-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-10-05 15:02:23 +08:00
|
|
|
- RTT_BSP='stm32/stm32g431-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='stm32/stm32h743-atk-apollo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-10-23 14:54:07 +08:00
|
|
|
- RTT_BSP='stm32/stm32h743-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2020-02-24 14:35:30 +08:00
|
|
|
- RTT_BSP='stm32/stm32h747-st-discovery' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='stm32/stm32l4r9-st-eval' RTT_TOOL_CHAIN='sourcery-arm'
|
2020-04-20 19:20:56 +08:00
|
|
|
- RTT_BSP='stm32/stm32l010-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-02-15 11:41:18 +08:00
|
|
|
- RTT_BSP='stm32/stm32l053-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2020-05-06 11:23:15 +08:00
|
|
|
- RTT_BSP='stm32/stm32l412-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-01-19 09:39:17 +08:00
|
|
|
- RTT_BSP='stm32/stm32l432-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2018-12-28 14:35:10 +08:00
|
|
|
- RTT_BSP='stm32/stm32l475-atk-pandora' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='stm32/stm32l475-st-discovery' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-02-15 11:41:18 +08:00
|
|
|
- RTT_BSP='stm32/stm32l476-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-03-14 10:34:40 +08:00
|
|
|
- RTT_BSP='stm32/stm32l496-ali-developer' RTT_TOOL_CHAIN='sourcery-arm'
|
2020-03-14 18:10:37 +08:00
|
|
|
- RTT_BSP='stm32/stm32l496-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='stm32f20x' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-02-15 11:41:18 +08:00
|
|
|
- RTT_BSP='swm320-lq100' RTT_TOOL_CHAIN='sourcery-arm'
|
2017-11-01 07:35:43 +08:00
|
|
|
# - RTT_BSP='taihu' RTT_TOOL_CHAIN='sourcery-ppc'
|
2013-03-17 21:26:03 +08:00
|
|
|
# - RTT_BSP='upd70f3454' # iar
|
2013-02-02 19:20:16 +08:00
|
|
|
# - RTT_BSP='x86' # x86
|
2014-01-04 06:08:48 +08:00
|
|
|
- RTT_BSP='beaglebone' RTT_TOOL_CHAIN='sourcery-arm'
|
2014-07-12 09:34:21 +08:00
|
|
|
- RTT_BSP='zynq7000' RTT_TOOL_CHAIN='sourcery-arm'
|
2014-07-12 11:17:09 +08:00
|
|
|
- RTT_BSP='frdm-k64f' RTT_TOOL_CHAIN='sourcery-arm'
|
2016-04-24 20:13:52 +08:00
|
|
|
- RTT_BSP='fh8620' RTT_TOOL_CHAIN='sourcery-arm'
|
|
|
|
- RTT_BSP='x1000' RTT_TOOL_CHAIN='sourcery-mips'
|
2019-04-18 10:07:48 +08:00
|
|
|
- RTT_BSP='xplorer4330/M4' RTT_TOOL_CHAIN='sourcery-arm'
|
2019-03-04 17:37:12 +08:00
|
|
|
|
|
|
|
stage: compile
|
|
|
|
script:
|
|
|
|
- scons -C bsp/$RTT_BSP
|