-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
43 lines (39 loc) · 1.34 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
variables:
TEST_RUNNER_CONTAINER: ${REGISTRY_HOST}/beckhoff/test_stage/test_runner:v4.104
test-on-device:
image: ${TEST_RUNNER_CONTAINER}
stage: build
script:
- .ci/prepare_test_stage.sh
- .ci/test-on-device.sh
tags:
- bbapi
.build-example: &build-example
image: ${REGISTRY_HOST}/beckhoff/docker-ubuntu-cached:latest
stage: build
before_script:
- apk add --update alpine-sdk cmake linux-headers
script:
- sed -i "s/define CONFIG_INTERACTIVE 1/define CONFIG_INTERACTIVE 0/" test_config.h
- sed -i.bak "s/\/\*\* select test device \*\//#include \"config_CX01-CX5020.h\"/" test_config.h
- make binaries
- mv ./build/unittest.bin unittest.bin.CX01-CX5020
- mv test_config.h.bak test_config.h
- sed -i.bak "s/\/\*\* select test device \*\//#include \"config_CX03-CX5140.h\"/" test_config.h
- make binaries
- mv ./build/unittest.bin unittest.bin.CX03-CX5140
- mv test_config.h.bak test_config.h
- sed -i.bak "s/\/\*\* select test device \*\//#include \"config_CX05-CX2030.h\"/" test_config.h
- make binaries
- mv ./build/unittest.bin unittest.bin.CX05-CX2030
- mv test_config.h.bak test_config.h
artifacts:
paths:
- ./build/*.bin
- unittest.bin.*
build-i386-example:
<<: *build-example
image: i386/alpine
build-x86_64-example:
<<: *build-example
image: alpine