.gitlab-ci.yml 2.99 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
Shrikant Garg's avatar
Shrikant Garg committed
14
15
  IBM_DEPLOYMENTS_SUBDIR: deployments/scripts/ibm
  IBM_DEPLOYMENTS_SCRIPTS_SUBDIR: deployments/scripts
16

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

29

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

37
38
39
  OSDU_GCP_SERVICE: schema
  OSDU_GCP_VENDOR: gcp
  OSDU_GCP_APPLICATION_NAME: os-schema
40
  OSDU_GCP_TESTS_SUBDIR: testing/schema-test-core
41
  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,PARTITION_API=$OSDU_GCP_PARTITION_API,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE --vpc-connector=$OSDU_GCP_VPC_CONNECTOR
42
  OSDU_GCP_HELM_PACKAGE_CHARTS: "devops/gcp/deploy devops/gcp/configmap"
43

David Diederich's avatar
David Diederich committed
44
include:
45
46
47
48
49
50
  - project: "osdu/platform/ci-cd-pipelines"
    file: "standard-setup.yml"

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

51
  - project: "osdu/platform/ci-cd-pipelines"
52
    file: "scanners/fossa-maven.yml"
53

54
55
  - project: 'osdu/platform/ci-cd-pipelines'
    file: 'cloud-providers/aws.yml'
56
57

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

60
61
  - project: "osdu/platform/ci-cd-pipelines"
    file: "scanners/gitlab-ultimate.yml"
62

63
64
  - project: "osdu/platform/ci-cd-pipelines"
    file: "cloud-providers/azure.yml"
65
66
67
68
69

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

harshit aggarwal's avatar
harshit aggarwal committed
70
  - local: "/devops/azure/gitlab-bootstrap.yml"
Rucha Deshpande's avatar
Rucha Deshpande committed
71
  - local: "/devops/aws/bootstrap.yaml"
Shrikant Garg's avatar
Shrikant Garg committed
72
  - local: "/devops/ibm/bootstrap.yaml"
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

osdu-gcp-test:
  image: maven:3.6.3-jdk-8
  script:
    - >
      mvn verify
      --batch-mode
      --quiet
      -s $CI_PROJECT_DIR/.mvn/community-maven.settings.xml
      -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:
91
        - $OSDU_GCP_TESTS_SUBDIR/target/*/TEST-*.xml