-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaval-tests.yml
176 lines (155 loc) · 4.56 KB
/
aval-tests.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
stages:
- build
- test
- report
build-tests-container:
extends: .docker-configure
stage: build
image: docker:dind
rules:
- if: $CI_WORLD_TEST == "true"
when: always
changes:
- /ci-scripts/test/*
- tests/**/*
services:
- name: docker:dind
variables:
TORADEX_INTERNAL_DOCKERHUB_CACHE: "artifactory-horw.int.toradex.com/dockerhub-proxy-horw"
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2
script:
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx create --name multiarch-builder --driver docker-container --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --use
- docker buildx inspect --bootstrap
- docker run --privileged --rm ${TORADEX_INTERNAL_DOCKERHUB_CACHE}/tonistiigi/binfmt --install arm64,arm
- docker buildx build
--progress=plain
--file tests/Dockerfile
--push
--platform linux/arm/v7,linux/arm64/v8,linux/amd64
-t ${CI_REGISTRY}/${CI_PROJECT_PATH}/torizon-containers-tests .
.e2e-test-template:
stage: test
image: gitlab.int.toradex.com:4567/rd/torizon-core-containers/aval/aval:main
before_script:
- /usr/local/bin/entrypoint.sh "docker run -e SOC_UDT=$SOC_UDT -e RM_ON_TEARDOWN=$RM_ON_TEARDOWN --privileged --pid host
-v /var/run/docker.sock:/var/run/docker.sock -v /home/torizon:/home/torizon -v /sys:/sys
${CI_REGISTRY}/${CI_PROJECT_PATH}/torizon-containers-tests /cases/run-tests.sh"
--copy-artifact /home/torizon/report.xml report.xml --delegation-config ./ci-scripts/test/delegation_config.toml
--before "docker system prune --all --force"
allow_failure: true
script:
- mv report.xml report-${CI_JOB_NAME}.xml
variables:
TARGET_BUILD_TYPE: "release"
rules:
- if: $CI_WORLD_TEST == "true"
when: on_success
artifacts:
when: always
reports:
junit: report-${CI_JOB_NAME}.xml
paths:
- ./report-${CI_JOB_NAME}.xml
needs:
- build-tests-container
e2e-test-colibri-imx7d-emmc-release:
extends: .e2e-test-template
variables:
SOC_UDT: "colibri-imx7d-emmc"
e2e-test-verdin-am62dual-release:
extends: .e2e-test-template
variables:
SOC_UDT: "verdin-am62dual"
e2e-test-apalis-imx6q-release:
extends: .e2e-test-template
variables:
SOC_UDT: "apalis-imx6q"
e2e-test-colibri-imx8dx-release:
extends: .e2e-test-template
variables:
SOC_UDT: "colibri-imx8dx"
e2e-test-verdin-imx8mmq-release:
extends: .e2e-test-template
variables:
SOC_UDT: "verdin-imx8mmq"
e2e-test-verdin-imx8mpq-release:
extends: .e2e-test-template
variables:
SOC_UDT: "verdin-imx8mpq"
e2e-test-colibri-imx7d-emmc-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "colibri-imx7d-emmc"
e2e-test-colibri-imx8dx-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "colibri-imx8dx"
e2e-test-verdin-am62dual-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "verdin-am62dual"
e2e-test-apalis-imx6q-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "apalis-imx6q"
e2e-test-apalis-imx8qm-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "apalis-imx8qm"
e2e-test-colibri-imx8dx-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "colibri-imx8dx"
e2e-test-verdin-imx8mmq-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "verdin-imx8mmq"
e2e-test-verdin-imx8mpq-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "verdin-imx8mpq"
e2e-test-colibri-imx6dl-release:
extends: .e2e-test-template
variables:
SOC_UDT: "colibri-imx6dl"
e2e-test-colibri-imx6dl-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "colibri-imx6dl"
e2e-test-colibri-imx6ull-emmc-release:
extends: .e2e-test-template
variables:
SOC_UDT: "colibri-imx6ull-emmc"
e2e-test-colibri-imx6ull-emmc-nightly:
extends: .e2e-test-template
variables:
TARGET_BUILD_TYPE: "nightly"
SOC_UDT: "colibri-imx6ull-emmc"
aggregate-reports:
stage: report
image: alpine
rules:
- if: $CI_WORLD_TEST == "true"
when: on_success
script:
- mkdir -p reports
- mv *.xml reports/
artifacts:
paths:
- reports/
variables:
# prevents gitlab git cleaning the untracked xml files
GIT_CLEAN_FLAGS: none