diff options
-rw-r--r-- | .gitlab-ci.yml | 19 | ||||
-rwxr-xr-x | tests/build-arduino-nano | 12 | ||||
-rwxr-xr-x | tests/build-atmega2560 | 11 | ||||
-rwxr-xr-x | tests/build-esp8266 | 7 | ||||
-rwxr-xr-x | tests/build-msp430fr5969lp | 12 | ||||
-rwxr-xr-x | tests/build-msp430fr5994lp | 12 | ||||
-rwxr-xr-x | tests/build-stm32f446re-nucleo | 12 |
7 files changed, 70 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c479407..2495f16 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,9 +12,7 @@ build_esp8266: script: - curl -s https://ess.cs.uos.de/static/.gitlab-ci/xtensa-lx106-elf.tar.xz | tar -C /opt -xJf - - mkdir -p build - - make -B arch=esp8266 app=donothing - - make -B arch=esp8266 app=ledblink loop=1 timer_s=1 - - make -B arch=esp8266 app=sysinfo + - sh -x tests/build-esp8266 build_posix: stage: build @@ -31,9 +29,7 @@ build_msp430fr5969lp: script: - curl -s https://ess.cs.uos.de/static/.gitlab-ci/msp430-gcc-full-linux-5.1.2.0.tar.xz | tar -C /opt -xJf - - mkdir -p build - - make -B arch=msp430fr5969lp app=donothing - - make -B arch=msp430fr5969lp app=ledblink loop=1 timer_s=1 - - make -B arch=msp430fr5969lp app=sysinfo + - sh -x tests/build-msp430fr5969lp build_msp430fr5994lp: stage: build @@ -42,9 +38,7 @@ build_msp430fr5994lp: script: - curl -s https://ess.cs.uos.de/static/.gitlab-ci/msp430-gcc-full-linux-5.1.2.0.tar.xz | tar -C /opt -xJf - - mkdir -p build - - make -B arch=msp430fr5994lp app=donothing - - make -B arch=msp430fr5994lp app=ledblink loop=1 timer_s=1 - - make -B arch=msp430fr5994lp app=sysinfo + - sh -x tests/build-msp430fr5994lp build_stm32f446re-nucleo: stage: build @@ -52,12 +46,7 @@ build_stm32f446re-nucleo: - apt-get update -qy - apt-get install -y --no-install-recommends gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib git python3 - mkdir -p build - - make arch=stm32f446re-nucleo ext/libopencm3/lib/libopencm3_stm32f4.a - - make arch=stm32f446re-nucleo app=donothing - - find src -name '*.o' -delete - - make arch=stm32f446re-nucleo app=ledblink loop=1 timer_s=1 - - find src -name '*.o' -delete - - make arch=stm32f446re-nucleo app=sysinfo + - sh -x tests/build-stm32f446re-nucleo test_posix: stage: test diff --git a/tests/build-arduino-nano b/tests/build-arduino-nano new file mode 100755 index 0000000..20185e0 --- /dev/null +++ b/tests/build-arduino-nano @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +apps="bme680-max44009-logger button-and-motion-logger + donothing i2cdetect ledblink mpu9250_motionlog + shell sysinfo timertest + waittest wetterstation ws2812b_dmap ws2812b_uart" + +for app in $apps; do + make -B arch=arduino-nano app=$app build/system.elf +done diff --git a/tests/build-atmega2560 b/tests/build-atmega2560 new file mode 100755 index 0000000..1983e4a --- /dev/null +++ b/tests/build-atmega2560 @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +apps="donothing ledblink + sysinfo timertest + waittest" + +for app in $apps; do + make -B arch=atmega2560 app=$app build/system.elf +done diff --git a/tests/build-esp8266 b/tests/build-esp8266 new file mode 100755 index 0000000..8f7d107 --- /dev/null +++ b/tests/build-esp8266 @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +for app in deflatetest donothing ledblink sysinfo; do + make -B arch=esp8266 app=$app build/system.elf +done diff --git a/tests/build-msp430fr5969lp b/tests/build-msp430fr5969lp new file mode 100755 index 0000000..3971237 --- /dev/null +++ b/tests/build-msp430fr5969lp @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +apps="bme680-max44009-logger + countertest donothing i2cdetect ledblink + nrf24l01test sharp96test shell sysinfo timertest + waittest" + +for app in $apps; do + make -B arch=msp430fr5969lp app=$app build/system.elf +done diff --git a/tests/build-msp430fr5994lp b/tests/build-msp430fr5994lp new file mode 100755 index 0000000..7db2e32 --- /dev/null +++ b/tests/build-msp430fr5994lp @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +apps="bme680-max44009-logger + countertest deflatetest donothing i2cdetect ledblink + nrf24l01test sharp96-bad-apple sharp96test shell sysinfo timertest + waittest" + +for app in $apps; do + make -B arch=msp430fr5994lp app=$app build/system.elf +done diff --git a/tests/build-stm32f446re-nucleo b/tests/build-stm32f446re-nucleo new file mode 100755 index 0000000..dee6a41 --- /dev/null +++ b/tests/build-stm32f446re-nucleo @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +apps="countertest deflatetest donothing ledblink + sysinfo" + +for app in $apps; do + find src -name '*.o' -delete + rm -f build/system.elf + make arch=stm32f446re-nucleo app=$app build/system.elf +done |