forked from pricefx/pricefx-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
34 lines (29 loc) · 819 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
# Delete this file if you're not using GitLab
image: maven:3.6-jdk-11
variables:
MAVEN_CLI_OPTS: "--batch-mode"
MAVEN_OPTS: -Dmaven.repo.local=/cache/.m2/repository
stages:
- test
- deploy
test:
stage: test
script:
- mvn test $MAVEN_CLI_OPTS
artifacts:
reports:
junit:
- ./target/surefire-reports/TEST-*.xml
.deploy:
stage: deploy
when: manual
image: cregistry.pricefx.eu/tools/pfxpackage
script:
# PFX_USER & PFX_PASS: should be set as masked variable in project's settings:
# Gitlab -> Settings -> CI/CD -> Variable.
# Never ever put it here.
- pfxpackage -import -timeout 60 -url ${PRICEFX_URL} -partition ${PRICEFX_PARTITION} -user ${PRICEFX_USERNAME} -password ${PRICEFX_PASSWORD} -from ./bundle
deploy-dev:
extends: .deploy
only:
- develop