-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
49 lines (42 loc) · 927 Bytes
/
.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
.template: &template
script:
- mvn test -Pspi-auto -DtestSuite=$SUITE -Denv=OU_VEM_A_VARIAVEL_OU_O_AMBIENTE_SETADO
image: CAMINHO_IMAGEM_maven:*.*.*-jdk-11-*****
tags:
- autoscaling_hom
artifacts:
when: always
expire_in: 4 week
paths:
- CAMINHO_AONDE_É_SALVO
.template_hom: &template_hom
<<: *template
tags:
- autoscaling_hom
stages:
- healthCheck-hom
- contrato-hom
- funcional-hom
variables:
MAVEN_OPTS: "-Dmaven.repo.local= aqui_geralmente_m2"
cache:
paths:
- $CI_PROJECT_DIR/.m2/repository
HealthCheck-Hom:
stage: healthCheck-hom
<<: *template_hom
variables:
ENVIRONMENT: "hom"
SUITE: "HealthCheckSuite"
Contrato-Hom:
stage: contrato-hom
<<: *template_hom
variables:
ENVIRONMENT: "hom"
SUITE: "ContractSuite"
Funcional-Hom:
stage: funcional-hom
<<: *template_hom
variables:
ENVIRONMENT: "hom"
SUITE: "FunctionalSuite"