Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Management Services
Wellbore
Wellbore Domain Services
Commits
f49be602
Commit
f49be602
authored
Apr 05, 2021
by
Mykola Zamkovyi (EPAM)
Browse files
wb movie to common pipeline
parent
9ccfcccf
Pipeline
#34519
failed with stages
in 9 minutes and 35 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f49be602
...
...
@@ -104,26 +104,26 @@ include:
# - docker build -t gcr.io/$OSDU_GCP_PROJECT/$OSDU_GCP_APPLICATION_NAME/$OSDU_GCP_APPLICATION_NAME-$OSDU_GCP_VENDOR:$CI_COMMIT_SHORT_SHA --rm . -f ./build/Dockerfile
# - gcloud docker -- push gcr.io/$OSDU_GCP_PROJECT/$OSDU_GCP_APPLICATION_NAME/$OSDU_GCP_APPLICATION_NAME-$OSDU_GCP_VENDOR:$CI_COMMIT_SHORT_SHA
osdu-gcp-test-python
:
image
:
gcr.io/google.com/cloudsdktool/cloud-sdk
allow_failure
:
true
only
:
variables
:
-
$OSDU_GCP == 'true' && $OSDU_GCP_INT_TEST_TYPE == 'python'
script
:
-
apt-get install -y python3-venv
-
python3 -m venv env
-
source env/bin/activate
-
pip install --upgrade pip
-
pip install wheel pytest pytest-cov
-
pip install -r requirements.txt
-
pip install -r requirements_dev.txt
-
cd tests/integration
-
echo $OSDU_GCP_INTEGRATION_TESTER | base64 -d > file.json
-
gcloud auth activate-service-account --key-file file.json
-
gcloud config set project $OSDU_GCP_PROJECT
-
python gen_postman_env.py --token $(gcloud auth print-identity-token) --base_url $OSDU_GCP_WELLBORE_DDMS_URL --cloud_provider $OSDU_GCP_VENDOR --data_partition $OSDU_TENANT --acl_domain $DOMAIN --legal_tag $LEGAL_TAG
-
pytest ./functional --environment="./generated/postman_environment.json" --filter-tag=basic
#
osdu-gcp-test-python:
#
image: gcr.io/google.com/cloudsdktool/cloud-sdk
#
allow_failure: true
#
only:
#
variables:
#
- $OSDU_GCP == 'true' && $OSDU_GCP_INT_TEST_TYPE == 'python'
#
script:
#
- apt-get install -y python3-venv
#
- python3 -m venv env
#
- source env/bin/activate
#
- pip install --upgrade pip
#
- pip install wheel pytest pytest-cov
#
- pip install -r requirements.txt
#
- pip install -r requirements_dev.txt
#
- cd tests/integration
#
- echo $OSDU_GCP_INTEGRATION_TESTER | base64 -d > file.json
#
- gcloud auth activate-service-account --key-file file.json
#
- gcloud config set project $OSDU_GCP_PROJECT
#
- python gen_postman_env.py --token $(gcloud auth print-identity-token) --base_url $OSDU_GCP_WELLBORE_DDMS_URL --cloud_provider $OSDU_GCP_VENDOR --data_partition $OSDU_TENANT --acl_domain $DOMAIN --legal_tag $LEGAL_TAG
#
- pytest ./functional --environment="./generated/postman_environment.json" --filter-tag=basic
#osdu-gcp-test:
# extends: []
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment