2013-05-09 13:48:11 +07:00
|
|
|
language: c
|
2019-10-01 15:43:28 +07:00
|
|
|
dist: bionic
|
2013-05-09 13:48:11 +07:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2018-11-25 11:51:23 -08:00
|
|
|
|
2019-06-10 16:34:36 +07:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2019-06-10 16:39:06 +07:00
|
|
|
- sourceline: "ppa:team-gcc-arm-embedded/ppa"
|
2019-06-10 16:34:36 +07:00
|
|
|
packages:
|
|
|
|
- python3
|
2019-06-10 16:50:23 +07:00
|
|
|
- ruby
|
|
|
|
- gcc-arm-embedded
|
2019-06-10 16:34:36 +07:00
|
|
|
|
|
|
|
install:
|
2019-06-10 16:50:23 +07:00
|
|
|
- gem install ceedling
|
2019-06-10 16:34:36 +07:00
|
|
|
|
2018-11-25 11:51:23 -08:00
|
|
|
before_script:
|
2019-11-13 09:22:18 -08:00
|
|
|
- wget -O /tmp/riscv-toolchain.tgz https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases/download/v8.3.0-1.1/xpack-riscv-none-embed-gcc-8.3.0-1.1-linux-x64.tgz
|
|
|
|
- tar -xzf /tmp/riscv-toolchain.tgz
|
|
|
|
- export PATH=$PWD/xPacks/riscv-none-embed-gcc/8.3.0-1.1/bin:$PATH
|
2019-06-10 16:50:23 +07:00
|
|
|
- arm-none-eabi-gcc --version
|
2019-11-13 09:22:18 -08:00
|
|
|
- riscv-none-embed-gcc --version
|
2018-11-25 11:51:23 -08:00
|
|
|
|
|
|
|
script:
|
2019-06-10 17:04:19 +07:00
|
|
|
# Build all examples
|
2019-06-10 16:45:02 +07:00
|
|
|
- python3 tools/build_all.py
|
2019-06-10 17:04:19 +07:00
|
|
|
# Run unit tests
|
|
|
|
- cd test
|
|
|
|
- ceedling test:all
|
2019-07-08 18:15:18 +07:00
|
|
|
- cd ..
|
2019-07-08 16:58:06 +07:00
|
|
|
|
|
|
|
after_success:
|
2019-07-08 18:25:14 +07:00
|
|
|
- source tools/build_success.sh
|