-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-prod-ci.yml
52 lines (46 loc) · 1.62 KB
/
.gitlab-prod-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
49
50
51
52
image: python:3.6
stages:
- dcp_wide_test
- find_test_bundles
- cleanup_test_bundles
before_script:
- date -u
- apt-get -y update
- apt-get -y install jq
- pip install -r requirements.txt
- export DEPLOYMENT_ENV=$CI_COMMIT_REF_NAME
- export AWS_DEFAULT_REGION=us-east-1
- export SWAGGER_URL="https://dss.data.humancellatlas.org/v1/swagger.json"
- mkdir -p ~/.config/hca
- jq -n .DSSClient.swagger_url=env.SWAGGER_URL > ~/.config/hca/config.$DEPLOYMENT_ENV.json
- export HCA_CONFIG_FILE=~/.config/hca/config.$DEPLOYMENT_ENV.json
- aws configure set default.s3.multipart_threshold 64MB
- aws configure set default.s3.multipart_chunksize 64MB
- aws secretsmanager get-secret-value --region us-east-1 --secret-id dcp/dss/${DEPLOYMENT_ENV}/gcp-credentials.json | jq -r .SecretString > gcp-credentials.json
- export GOOGLE_APPLICATION_CREDENTIALS=$(pwd -P)/gcp-credentials.json
dcp_wide_test_SS2:
stage: dcp_wide_test
only:
- prod
script:
- python -m unittest tests.integration.test_end_to_end_dcp.TestSmartSeq2Run.test_smartseq2_run
dcp_wide_test_optimus:
stage: dcp_wide_test
only:
- prod
script:
- python -m unittest tests.integration.test_end_to_end_dcp.TestOptimusRun.test_optimus_run
find_test_bundles:
stage: find_test_bundles
when: on_failure
only:
- prod
script:
- python -m unittest tests.cleanup.cleanup_test_bundles.CleanupTestBundles.test_find_test_bundles
tombstone_test_bundles:
stage: cleanup_test_bundles
when: on_failure
only:
- prod
script:
- python -m unittest tests.cleanup.cleanup_test_bundles.CleanupTestBundles.test_tombstone_test_bundles