-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
54 lines (50 loc) · 1.77 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
stages:
- validate
- test
style_check:
stage: validate
image: sensirion/embedded-ci:2.2.0
tags: [linux, docker]
script:
- clang-format-7 -i src/*
- git diff --exit-code
lint_check:
stage: validate
image: sensirion/embedded-ci:2.2.0
tags: [linux, docker]
script:
- cd /usr/local
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/install.sh | sh
- arduino-lint /builds/Gadgets/arduino-ble-gadget --library-manager update
cpp_check:
stage: validate
image:
name: registry.gitlab.sensirion.lokal/mso-sw/drivers/docker-driver-generator:0.1.0
tags: [linux, docker]
script:
- cppcheck --std=c++11 --language=c++ --error-exitcode=1 --enable=warning,performance,portability src/*
example_compilation:
stage: test
image:
name: registry.gitlab.sensirion.lokal/sensirion/docker/docker-arduino:0.5.0
tags: [docker, linux]
needs: []
before_script:
- arduino-cli update
- export ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true
- arduino-cli lib install "NimBLE-Arduino@1.4.0"
- arduino-cli lib install "Sensirion I2C SCD30@0.1.0"
- arduino-cli lib install "Sensirion I2C SCD4x@0.3.1"
- arduino-cli lib install "Sensirion I2C SEN5X@0.2.0"
- arduino-cli lib install "Sensirion I2C SFA3x@0.1.0"
- arduino-cli lib install "Sensirion I2C SVM4x@0.2.0"
- arduino-cli lib install "Sensirion UPT Core@0.3.0"
- ln -s $PWD ~/Arduino/libraries/
- git clone https://github.com/Xinyuan-LilyGO/TTGO-T-Display
- ln -s $PWD/TTGO-T-Display/TFT_eSPI ~/Arduino/libraries/TFT_eSPI
- mkdir tmp
parallel:
matrix:
- ExampleID: [1, 2, 3, 4, 6, 8, 10, 11, 12, 13]
script:
- arduino-cli compile --warnings all --build-cache-path tmp --fqbn esp32:esp32:esp32 examples/Example${ExampleID}_*