Skip to content

Commit 3f5bc43

Browse files
committed
Uncomment other tests.
1 parent 02c4578 commit 3f5bc43

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -66,45 +66,45 @@ check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }}):
6666
script:
6767
- PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/check_layer_size.sh
6868

69-
#lint python:
70-
# stage: test
71-
# tags: ["arch:amd64"]
72-
# image: registry.ddbuild.io/images/mirror/python:{{ $runtime.image }}
73-
# cache: &{{ $runtime.name }}-{{ $runtime.arch }}-cache
74-
# before_script: *python-before-script
75-
# script:
76-
# - source venv/bin/activate
77-
# - ./scripts/check_format.sh
69+
lint python:
70+
stage: test
71+
tags: ["arch:amd64"]
72+
image: registry.ddbuild.io/images/mirror/python:{{ $runtime.image }}
73+
cache: &{{ $runtime.name }}-{{ $runtime.arch }}-cache
74+
before_script: *python-before-script
75+
script:
76+
- source venv/bin/activate
77+
- ./scripts/check_format.sh
7878

79-
#unit-test ({{ $runtime.name }}-{{ $runtime.arch }}):
80-
# stage: test
81-
# tags: ["arch:amd64"]
82-
# image: registry.ddbuild.io/images/mirror/python:{{ $runtime.image }}
83-
# cache: &{{ $runtime.name }}-{{ $runtime.arch }}-cache
84-
# before_script: *python-before-script
85-
# script:
86-
# - source venv/bin/activate
87-
# - pytest -vv
79+
unit-test ({{ $runtime.name }}-{{ $runtime.arch }}):
80+
stage: test
81+
tags: ["arch:amd64"]
82+
image: registry.ddbuild.io/images/mirror/python:{{ $runtime.image }}
83+
cache: &{{ $runtime.name }}-{{ $runtime.arch }}-cache
84+
before_script: *python-before-script
85+
script:
86+
- source venv/bin/activate
87+
- pytest -vv
8888

89-
#integration-test ({{ $runtime.name }}-{{ $runtime.arch }}):
90-
# stage: test
91-
# tags: ["arch:amd64"]
92-
# image: registry.ddbuild.io/images/docker:20.10-py3
93-
# needs:
94-
# - build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
95-
# dependencies:
96-
# - build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
97-
# cache: &{{ $runtime.name }}-{{ $runtime.arch }}-cache
98-
# variables:
99-
# CI_ENABLE_CONTAINER_IMAGE_BUILDS: "true"
100-
# before_script:
101-
# - *install-node
102-
# - EXTERNAL_ID_NAME=integration-test-externalid ROLE_TO_ASSUME=sandbox-integration-test-deployer AWS_ACCOUNT=425362996713 source ./ci/get_secrets.sh
103-
# - yarn global add serverless@^3.38.0 --prefix /usr/local
104-
# - yarn global add serverless-python-requirements@^6.1.1 --prefix /usr/local
105-
# - cd integration_tests && yarn install && cd ..
106-
# script:
107-
# - RUNTIME_PARAM={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/run_integration_tests.sh
89+
integration-test ({{ $runtime.name }}-{{ $runtime.arch }}):
90+
stage: test
91+
tags: ["arch:amd64"]
92+
image: registry.ddbuild.io/images/docker:20.10-py3
93+
needs:
94+
- build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
95+
dependencies:
96+
- build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
97+
cache: &{{ $runtime.name }}-{{ $runtime.arch }}-cache
98+
variables:
99+
CI_ENABLE_CONTAINER_IMAGE_BUILDS: "true"
100+
before_script:
101+
- *install-node
102+
- EXTERNAL_ID_NAME=integration-test-externalid ROLE_TO_ASSUME=sandbox-integration-test-deployer AWS_ACCOUNT=425362996713 source ./ci/get_secrets.sh
103+
- yarn global add serverless@^3.38.0 --prefix /usr/local
104+
- yarn global add serverless-python-requirements@^6.1.1 --prefix /usr/local
105+
- cd integration_tests && yarn install && cd ..
106+
script:
107+
- RUNTIME_PARAM={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/run_integration_tests.sh
108108

109109
sign-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
110110
stage: sign
@@ -116,9 +116,9 @@ sign-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
116116
needs:
117117
- build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
118118
- check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }})
119-
#- lint python
120-
#- unit-test ({{ $runtime.name }}-{{ $runtime.arch }})
121-
#- integration-test ({{ $runtime.name }}-{{ $runtime.arch }})
119+
- lint python
120+
- unit-test ({{ $runtime.name }}-{{ $runtime.arch }})
121+
- integration-test ({{ $runtime.name }}-{{ $runtime.arch }})
122122
dependencies:
123123
- build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
124124
artifacts: # Re specify artifacts so the modified signed file is passed
@@ -157,9 +157,9 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
157157
{{ else }}
158158
- build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
159159
- check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }})
160-
#- lint python
161-
#- unit-test ({{ $runtime.name }}-{{ $runtime.arch }})
162-
#- integration-test ({{ $runtime.name }}-{{ $runtime.arch }})
160+
- lint python
161+
- unit-test ({{ $runtime.name }}-{{ $runtime.arch }})
162+
- integration-test ({{ $runtime.name }}-{{ $runtime.arch }})
163163
{{ end }}
164164
dependencies:
165165
{{ if or (eq $environment_name "prod") }}

0 commit comments

Comments
 (0)