-
Notifications
You must be signed in to change notification settings - Fork 48
/
.gitlab-ci.yml
73 lines (63 loc) · 1.98 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
variables:
DOCKER_REPOSITORY: mendersoftware/deployments
MULTIPLATFORM_BUILD: "true"
MULTIPLATFORM_PLATFORMS: "linux/amd64,linux/arm64"
stages:
- test_prep
- test
- build
- publish
include:
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-golang-lint.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-golang-unittests-v2.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-commits.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-license.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-docker-acceptance.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-apidocs.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-docker-build.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-github-status-updates.yml'
test:acceptance_tests:
script:
- rm -f tests/coverage-acceptance*.txt
- export TESTS_DIR=$(pwd)/tests
- export INTEGRATION_DIR=$(pwd)/mender-integration
- |
for compose in $TESTS_DIR/docker-compose*.yml; do
$TESTS_DIR/run-test-environment acceptance $INTEGRATION_DIR $compose;
done
after_script:
- set -- tests/coverage-acceptance@*.txt
- head -n 1 $1 > tests/coverage-acceptance.txt
- |
for cover in $@; do
tail -n +2 $cover >> tests/coverage-acceptance.txt;
done
# excludes non multiplatform build job
build:docker:
rules:
- when: never
# excludes non multiplatform build job
publish:image:
rules:
- when: never
# excludes non multiplatform job
publish:image:saas:
rules:
- when: never
# excludes non multiplatform build job
publish:image:mender:
rules:
- when: never
# FIXME Revert the image overrides once templates in mendertesting is updated
test:static:
image: golangci/golangci-lint:v1.53.3
test:validate-open-api:
allow_failure: false