forked from aws/deep-learning-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testspec.yml
33 lines (32 loc) · 988 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
31
32
33
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
- python src/parse_partner_developers.py
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
- pip install scheduler/.
- echo Running pytest $TEST_TYPE tests on $DLC_IMAGES...
- export PYTHONPATH=$PYTHONPATH:$(pwd)/src
- 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