.gitlab-ci.yml 1.32 KB
Newer Older
ceoche's avatar
ceoche committed
1 2 3
# Define templates
include:
  - project: 'gazelle/private/gitlab-ci-templates'
4 5
    file: 'extends.yaml'
    ref: 'master'
ceoche's avatar
ceoche committed
6 7 8 9

# Define stages
stages:
  - build
10
  - postbuild
ceoche's avatar
ceoche committed
11 12 13 14
  - deploy
  - tests
  - release
  - upgrade
15 16
  - cleanup
  
ceoche's avatar
ceoche committed
17 18
# Define global variables
variables:
19
  P_NAME: "app.patient-registry"
ceoche's avatar
ceoche committed
20
  P_APP_TYPE: "java"
21 22 23 24 25 26 27 28
  P_CODE_SRC_PATH: "."
  P_DB_DATASOURCE_NAME: "patientRegistry"
  P_IMPORT_DB_SCHEMA: "true"
  P_DB_SCHEMA_PATH: "patient-registry-service/src/main/resources/sql/schema.sql"
  P_DB_NAME: "pam-simulator"

services:
  - postgres:9.6.17-alpine
ceoche's avatar
ceoche committed
29 30 31 32 33 34


# Define jobs
code:
  stage: build
  extends:
35 36 37
    - .codeForJavaWithWildflyAndPostgresql
  services:
    - postgres:9.6.17-alpine
ceoche's avatar
ceoche committed
38
  variables:
39
    P_MAVEN_IMAGE_TAG: "wildfly-3.6.3-18.0.1.Final"
ceoche's avatar
ceoche committed
40 41 42 43

quality:
  stage: tests
  extends:
44
    - .qualityForJavaWithSonarqubeAndPostgresql
ceoche's avatar
ceoche committed
45
  variables:
46
    P_MAVEN_IMAGE_TAG: "wildfly-3.6.3-18.0.1.Final"
ceoche's avatar
ceoche committed
47 48 49 50 51 52 53 54 55
    P_CODE_BINARIES: "target/classes/"
    P_CODE_JACOCO_REPORT_PATH: "target/jacoco.exec"
    P_CODE_JUNIT_REPORTS_PATH: "target/surefire-reports"
    P_CODE_DYNAMIC_ANALYSIS: "reuseReports"
    P_CODE_COVERAGE_PLUGIN: "jacoco"
    P_CODE_SOURCE_ENCODING: "UTF-8"
    P_CODE_LANGUAGE: "java"
    P_CODE_DEVELOPER_EDITION: "true"

Wylem Bars's avatar
Wylem Bars committed
56 57 58 59 60 61 62
release/code:
  stage: release
  extends:
    - .releaseCodeForJava
  variables:
    P_MAVEN_IMAGE_TAG: "3.6.3"