forked from aws/deep-learning-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testspec.yml
35 lines (35 loc) · 1.09 KB
/
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
34
35
version: 0.2
env:
git-credential-helper: yes
phases:
install:
runtime-versions:
docker: 18
pre_build:
commands:
- start-dockerd
- for i in {1..3}; do pip install -r src/requirements.txt && break || sleep 30; done
- 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
- python src/send_test_notification.py
reports:
test_reports:
files:
- test/*.xml
file-format: JunitXml