.gitlab-ci.yml 2.68 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
18
19
  AZURE_SERVICE: schema
  AZURE_BUILD_SUBDIR: provider/schema-azure
  AZURE_TEST_SUBDIR: testing/schema-test-core
  AZURE_SKIP_TEST: 'true'

Rucha Deshpande's avatar
Rucha Deshpande committed
20
  AWS_BUILD_SUBDIR: provider/schema-aws/build-aws
21
  AWS_TEST_SUBDIR: testing/schema-test-core
Matt Wise's avatar
Matt Wise committed
22
  AWS_SERVICE: schema
Rucha Deshpande's avatar
Rucha Deshpande committed
23
  AWS_ENVIRONMENT: dev
24
  AWS_MAVEN_TEST_COMMAND_OVERRIDE: verify
Rucha Deshpande's avatar
Rucha Deshpande committed
25

26
27
28
29
30
  OSDU_GCP_SERVICE: schema
  OSDU_GCP_VENDOR: gcp
  OSDU_GCP_APPLICATION_NAME: os-schema
  OSDU_GCP_ENV_VARS: AUTHORIZE_API=$OSDU_GCP_ENTITLEMENTS_URL,AUTHORIZE_API_KEY=$OSDU_GCP_AUTHORIZE_API_KEY,LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=DEBUG,DEFAULT_ACCOUNT_ID=$TENANT --vpc-connector=$OSDU_GCP_VPC_CONNECTOR

31

David Diederich's avatar
David Diederich committed
32
include:
33
34
35
36
37
38
  - project: "osdu/platform/ci-cd-pipelines"
    file: "standard-setup.yml"

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

39
40
  - project: "osdu/platform/ci-cd-pipelines"
    file: "scanners/fossa.yml"
41

42
43
  #- project: "osdu/platform/ci-cd-pipelines"
   # file: "cloud-providers/gcp.yml"
44

45
46
  - project: 'osdu/platform/ci-cd-pipelines'
    file: 'cloud-providers/aws.yml'
47
48

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

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

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

57
58
59
  - project: "osdu/platform/ci-cd-pipelines"
    ref: 'master'
    file: 'cloud-providers/osdu-gcp-cloudrun.yml'
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

osdu-gcp-test:
  image: maven:3.3.9-jdk-8
  extends:
    - .osdu-gcp-variables
  stage: integration
  needs: ["osdu-gcp-deploy"]
  allow_failure: true
  variables:
    WORKFLOW_HOST: $OSDU_GCP_WORKFLOW_SERVICE_URL
    INGEST_HOST: $OSDU_GCP_INGEST_HOST
    TEST_FILE_ID: $OSDU_GCP_TEST_FILE_ID
    FILE_SERVICE_HOST: $OSDU_GCP_FILE_URL
    DELIVERY_HOST: $OSDU_GCP_DELIVERY_SERVICE_URL
    SEARCH_HOST: $OSDU_GCP_SEARCH_HOST
    STORAGE_HOST: $OSDU_GCP_STORAGE_URL
  script:
    - export INTEGRATION_TESTER=$(echo $OSDU_GCP_R3_INTEGRATION_TESTER)
    - export NO_DATA_ACCESS_TESTER=$(echo $OSDU_GCP_R3_NO_DATA_ACCESS_TESTER)
    - export GCP_DEPLOY_FILE=$(echo $OSDU_GCP_DEPLOY_FILE)
    - export SEARCH_INTEGRATION_TESTER=$(echo $OSDU_GCP_R3_INTEGRATION_TESTER)
    - mvn --batch-mode --settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml -f testing/pom.xml verify --projects $OSDU_GCP_SERVICE-test-core
  only:
    variables:
      - $OSDU_GCP == 'true'