-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
153 lines (142 loc) · 3.52 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
include:
- component: $CI_SERVER_FQDN/$CI_PROJECT_NAMESPACE/components/default@main
- component: $CI_SERVER_FQDN/$CI_PROJECT_NAMESPACE/packages/lint@production
# - component: $CI_SERVER_FQDN/$CI_PROJECT_NAMESPACE/components/docker@production
# inputs:
# flavor: /builder
# publish: false
variables:
CRYPTOMEDIC_DEV_HTTP_HOST: docker
default:
timeout: 15m
# ############################################################
# #
# # build
# #
# build:
# stage: build
# image: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/packages/dev:latest
# services:
# - name: docker
# script:
# - env
# - make dump
# - make build
# artifacts:
# paths:
# - .ovhconfig
# - www
# ############################################################
# #
# # Test
# #
# tests-unit:
# stage: test
# image: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/packages/dev:latest
# parallel:
# matrix:
# - target:
# - dump
# - lint
# - frontend-test
# script:
# - make github
# - make $target
# tests-unit-with-backend:
# stage: test
# image: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/packages/dev:latest
# services:
# - name: docker:dind
# parallel:
# matrix:
# - target:
# - backend-test
# script:
# - make github
# - make dependencies
# - make start
# - make $target
# tests-e2e-desktop:
# stage: test
# image: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/packages/dev:latest
# services:
# - name: docker:dind
# parallel:
# matrix:
# - flavor:
# - desktop
# - playwright
# script:
# - ./setup.sh
# - make github
# - make dc-build
# - make start
# - make dependencies
# - make integration-test-desktop-run
# - make integration-test-desktop-styles
# artifacts:
# when: always
# paths:
# - tmp/integration/desktop
# tests-e2e-playwright-strict:
# stage: test
# image: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/packages/dev:latest
# services:
# - name: docker:dind
# script:
# - ./setup.sh
# - make github
# - make dc-build
# - make start
# - make dependencies
# - make integration-test-playwright-strict
# artifacts:
# when: always
# paths:
# - tmp/integration/playwright
# test-e2e-playwright:
# stage: test
# image: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/packages/dev:latest
# services:
# - name: docker:dind
# script:
# - ./setup.sh
# - make github
# - make dc-build
# - make start
# - make dependencies
# - make integration-test-playwright
# - git status
# artifacts:
# when: always
# paths:
# - tests/e2e/**/*.png
# deploy:
# stage: release
# image: alpine
# needs:
# - tests-unit
# - tests-unit-with-backend
# - test-e2e-playwright
# # environment:
# # name: production
# # rules:
# # - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
# # when: never
# # - when: on_success
# # script:
# # - ./setup.sh
# # - make github
# # - make build
# # - make deploy
# # variables:
# # CRYPTOMEDIC_DEPLOY_WEB_HOST: $CRYPTOMEDIC_DEPLOY_WEB_HOST
# # CRYPTOMEDIC_DEPLOY_WEB_PORT: $CRYPTOMEDIC_DEPLOY_WEB_PORT
# # CRYPTOMEDIC_DEPLOY_WEB_TOKEN: $CRYPTOMEDIC_DEPLOY_WEB_TOKEN
# # CRYPTOMEDIC_DEPLOY_FILES_HOST: $CRYPTOMEDIC_DEPLOY_FILES_HOST
# # CRYPTOMEDIC_DEPLOY_FILES_USER: $CRYPTOMEDIC_DEPLOY_FILES_USER
# # CRYPTOMEDIC_DEPLOY_FILES_PASSWORD: $CRYPTOMEDIC_DEPLOY_FILES_PASSWORD
# # artifacts:
# # when: always
# # paths:
# # - tmp/deploy.log