forked from aws/deep-learning-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autopr_buildspec.yml
31 lines (31 loc) · 917 Bytes
/
autopr_buildspec.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
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
build:
commands:
- echo Logging in to Amazon ECR...
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
- export PYTHONPATH=$PYTHONPATH:$(pwd)
- export PYTHONPATH=$PYTHONPATH:$(pwd)/src
- pip install -r src/requirements.txt
- pip install -r test/requirements.txt
- pip install scheduler/.
- echo Running $TEST_TYPE tests on $DLC_IMAGES...
- python src/autopr_caller.py
post_build:
commands:
- python src/send_status.py --status $CODEBUILD_BUILD_SUCCEEDING
reports:
test_reports:
files:
- test/*.xml
file-format: JunitXml