.gitlab-ci.yml 2.66 KB
Newer Older
David Diederich's avatar
David Diederich committed
1
2
3
4
variables:
  GCP_BUILD_SUBDIR: provider/schema-gcp
  GCP_INT_TEST_SUBDIR: testing/schema-test-gcp
  GCP_APPLICATION_NAME: os-schema
5
6
7
  GCP_ENVIRONMENT: testing
  GCP_PROJECT: opendes-evt
  GCP_TENANT_NAME: opendesevt
David Diederich's avatar
David Diederich committed
8
9
10
  GCP_DEPLOY_ENV: p4d
  GCP_DOMAIN: cloud.slb-ds.com

11
  IBM_BUILD_SUBDIR: provider/schema-ibm
12
13
  IBM_INT_TEST_SUBDIR: testing/schema-test-core
  IBM_TEST_CMD: verify
14

15
16
17
  AZURE_SERVICE: schema
  AZURE_BUILD_SUBDIR: provider/schema-azure
  AZURE_TEST_SUBDIR: testing/schema-test-core
18
  AZURE_DEPLOYMENTS_SUBDIR: deployments/scripts/azure
harshit aggarwal's avatar
harshit aggarwal committed
19
  AZURE_DEPLOYMENTS_SCRIPTS_SUBDIR: deployments/scripts
harshit aggarwal's avatar
harshit aggarwal committed
20
21
  AZURE_CLIENT_ID: $AZURE_PRINCIPAL_ID
  AZURE_CLIENT_SECRET: $AZURE_PRINCIPAL_SECRET
22
  DATA_PARTITION: opendes
23
  AZURE_AD_APP_RESOURCE_ID: $AZURE_APP_ID
24
25
  AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=https;AccountName=${AZURE_BASE}data;AccountKey=${AZURE_STORAGE_KEY};EndpointSuffix=core.windows.net

26

Rucha Deshpande's avatar
Rucha Deshpande committed
27
  AWS_BUILD_SUBDIR: provider/schema-aws/build-aws
28
  AWS_TEST_SUBDIR: testing/schema-test-core
Rucha Deshpande's avatar
Rucha Deshpande committed
29
  AWS_DEPLOYMENTS_SUBDIR: deployments/scripts/aws
Matt Wise's avatar
Matt Wise committed
30
  AWS_SERVICE: schema
Rucha Deshpande's avatar
Rucha Deshpande committed
31
  AWS_ENVIRONMENT: dev
32
  AWS_MAVEN_TEST_COMMAND_OVERRIDE: verify
Rucha Deshpande's avatar
Rucha Deshpande committed
33

34
35
36
  OSDU_GCP_SERVICE: schema
  OSDU_GCP_VENDOR: gcp
  OSDU_GCP_APPLICATION_NAME: os-schema
37
  OSDU_GCP_TESTS_SUBDIR: testing/schema-test-core
38
  OSDU_GCP_ENV_VARS: AUTHORIZE_API=$OSDU_GCP_ENTITLEMENTS_URL,AUTHORIZE_API_KEY=$OSDU_GCP_AUTHORIZE_API_KEY,LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=DEBUG,SHARED_TENANT_NAME=$TENANT --vpc-connector=$OSDU_GCP_VPC_CONNECTOR
39

David Diederich's avatar
David Diederich committed
40
include:
41
42
43
44
45
46
  - project: "osdu/platform/ci-cd-pipelines"
    file: "standard-setup.yml"

  - project: "osdu/platform/ci-cd-pipelines"
    file: "build/maven.yml"

47
  - project: "osdu/platform/ci-cd-pipelines"
48
    file: "scanners/fossa-maven.yml"
49

50
51
  - project: 'osdu/platform/ci-cd-pipelines'
    file: 'cloud-providers/aws.yml'
52
53

  - project: "osdu/platform/ci-cd-pipelines"
54
55
    file: "cloud-providers/ibm.yml"

56
57
  - project: "osdu/platform/ci-cd-pipelines"
    file: "scanners/gitlab-ultimate.yml"
58

59
60
  - project: "osdu/platform/ci-cd-pipelines"
    file: "cloud-providers/azure.yml"
61
62
63
64
65

  - project: "osdu/platform/ci-cd-pipelines"
    ref: 'master'
    file: 'cloud-providers/osdu-gcp-cloudrun.yml'

harshit aggarwal's avatar
harshit aggarwal committed
66
  - local: "/devops/azure/gitlab-bootstrap.yml"
Rucha Deshpande's avatar
Rucha Deshpande committed
67
  - local: "/devops/aws/bootstrap.yaml"
68
69

osdu-gcp-test:
70
  image: maven:3.6.3-jdk-8
71
72
73
74
  script:
    - >
      mvn verify
      --batch-mode
Dmitriy Rudko's avatar
Dmitriy Rudko committed
75
      --quiet
76
      -s $CI_PROJECT_DIR/.mvn/community-maven.settings.xml
77
78
79
80
81
82
83
84
85
86
      -f $OSDU_GCP_TESTS_SUBDIR/pom.xml
      > test-results.log
  artifacts:
    when: always
    paths:
      - test-results.log
      - $OSDU_GCP_TESTS_SUBDIR/target/*/TEST-*.xml
    reports:
      junit:
        - $OSDU_GCP_TESTS_SUBDIR/target/*/TEST-*.xml