forked from aws/deep-learning-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testspec.yml
30 lines (29 loc) · 859 Bytes
/
testspec.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
version: 0.2
phases:
install:
runtime-versions:
docker: 18
pre_build:
commands:
- start-dockerd
- pip install -r src/requirements.txt
- python src/send_status.py --status 2
build:
commands:
- echo Logging in to Amazon ECR...
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
- |
if expr "${TEST_TYPE}" : "canary" >/dev/null; then
$(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION --registry-ids 763104351884)
fi
- pip install -r test/requirements.txt
- echo Running pytest $TEST_TYPE tests on $DLC_IMAGES...
- python test/testrunner.py
post_build:
commands:
- python src/send_status.py --status $CODEBUILD_BUILD_SUCCEEDING
reports:
test_reports:
files:
- test/*.xml
file-format: JunitXml