forked from Mborsellino/bdcat-integration-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
48 lines (40 loc) · 1.11 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
image: quay.io/biocat/bdcat-integration-tests:0.2
stages:
- test
variables:
GOOGLE_PROJECT_NAME: firecloud-cgl
WORKSPACE_NAME: terra-notebook-utils-tests
GOOGLE_PROJECT_ID: drs-billing-project
before_script:
- date && date -u
- source environment
- make lint
- echo -n ${ENCODED_GOOGLE_APPLICATION_CREDENTIALS} | base64 -d > ${CI_PROJECT_DIR}/gcp-creds.json
# Don't set GOOGLE_APPLICATION_CREDENTIALS to so that some tests are still
# unauthenticated. Use directly when needed.
after_script:
- /venv/bin/python scripts/post_to_slack.py
.staging_job: &staging_job
stage: test
variables:
BDCAT_STAGE: staging
TERRA_DEPLOYMENT_ENV: alpha
except:
- prod
staging__basic_submission:
<<: *staging_job
script:
- timeout -s SIGINT 115m /venv/bin/python test/test_basic_submission.py
staging__version_check:
<<: *staging_job
script:
- /venv/bin/python test/test_version_check.py
prod__basic_submission:
stage: test
variables:
BDCAT_STAGE: prod
script:
- timeout -s SIGINT 115m /venv/bin/python test/test_basic_submission.py
except:
- master
- staging