-
Notifications
You must be signed in to change notification settings - Fork 27
/
.gitlab-ci.yml
130 lines (109 loc) · 2.86 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
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
stages:
- build
- test
variables:
BOWLINE_IMAGE_PREFIX: "$CI_REGISTRY/"
BOWLINE_IMAGE_SUFFIX: "/ci:$CI_COMMIT_SHA"
default:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build:
image: docker:19.03.13
services:
- docker:dind
stage: build
script:
- docker build -t "${BOWLINE_IMAGE_PREFIX}civicactions/bowline${BOWLINE_IMAGE_SUFFIX}" .
- docker push "${BOWLINE_IMAGE_PREFIX}civicactions/bowline${BOWLINE_IMAGE_SUFFIX}"
.test_template: &linux_test_definition
stage: test
script:
- sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
- sudo chmod +x /usr/bin/docker-compose
- bash --login -i ./tests/test.sh
- bash --login --posix -i ./tests/test.sh
- command -v dash && dash ./tests/test.sh || echo "Skipping dash"
- zsh --login --interactive ./tests/test.sh
- mksh -li ./tests/test.sh
ubuntu1804distro:
<<: *linux_test_definition
tags:
- ubuntu1804distro
ubuntu1804upstream:
<<: *linux_test_definition
tags:
- ubuntu1804upstream
ubuntu2004distro:
<<: *linux_test_definition
tags:
- ubuntu2004distro
ubuntu2004upstream:
<<: *linux_test_definition
tags:
- ubuntu2004upstream
rhel7distro:
<<: *linux_test_definition
tags:
- rhel7distro
rhel7upstream:
<<: *linux_test_definition
tags:
- rhel7upstream
rhel8distro:
<<: *linux_test_definition
tags:
- rhel8distro
allow_failure: true
rhel8upstream:
<<: *linux_test_definition
tags:
- rhel8upstream
allow_failure: true
centos7distro:
<<: *linux_test_definition
tags:
- centos7distro
centos7upstream:
<<: *linux_test_definition
tags:
- centos7upstream
centos8distro:
<<: *linux_test_definition
tags:
- centos8distro
centos8upstream:
<<: *linux_test_definition
tags:
- centos8upstream
archdistro:
<<: *linux_test_definition
tags:
- archdistro
windowsserver:
variables:
BOWLINE_IMAGE_SUFFIX: "$CI_COMMIT_SHA"
script:
- \"$env:ProgramFiles\git\usr\bin\bash.exe\" -O expand_aliases ./tests/test.sh
- set PATH=C:\tools\cygwin\bin;%PATH% && c:\tools\cygwin\bin\bash.exe -O expand_aliases ./tests/test.sh
tags:
- windowsserver
allow_failure: true
windows10:
variables:
BOWLINE_IMAGE_SUFFIX: "$CI_COMMIT_SHA"
script:
- \"$env:ProgramFiles\git\usr\bin\bash.exe\" -O expand_aliases ./tests/test.sh
- $env:Path = ";C:\tools\cygwin\bin;" + $env:Path
- c:\tools\cygwin\bin\bash.exe -O expand_aliases ./tests/test.sh
tags:
- windows10
allow_failure: true
macOS11:
script:
- bash --login -i ./tests/test.sh
- bash --login --posix -i ./tests/test.sh
- command -v dash && dash ./tests/test.sh || echo "Skipping dash"
- zsh --login --interactive ./tests/test.sh
- mksh -li ./tests/test.sh
tags:
- macOS11