-
Notifications
You must be signed in to change notification settings - Fork 8
/
testspec.yml
24 lines (24 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
version: 0.2
phases:
install:
commands:
- echo Initializing docker daemon...
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
pre_build:
commands:
- echo Logging in to Amazon ECR...
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com
- pip install -r test/requirements.txt
- echo Performing additional setup...
- python test/perform_additional_setup.py
build:
commands:
- echo Testing started on `date`
- echo Testing images at $CODEBUILD_SRC_DIR_BUILD_RESULTS...
- pytest test/unit_tests
- pytest test/sagemaker_tests -vv --from-build-results $CODEBUILD_SRC_DIR_BUILD_RESULTS/build_results.txt
- pytest test/braket_tests/$FRAMEWORK -vv --from-build-results $CODEBUILD_SRC_DIR_BUILD_RESULTS/build_results.txt
post_build:
commands:
- echo Testing step finished on `date`