Skip to content

Commit eceac9f

Browse files
authored
add buildspec (aws#244)
1 parent 6b2bf37 commit eceac9f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 0.2
2+
env:
3+
variables:
4+
run_pytest_pytorch: "enable"
5+
run_pytest_mxnet: "enable"
6+
run_pytest_tensorflow: "enable"
7+
run_pytest_xgboost: "enable"
8+
run_integration_pytest_pytorch: "enable"
9+
run_integration_pytest_mxnet: "enable"
10+
run_integration_pytest_tensorflow: "enable"
11+
run_integration_pytest_xgboost: "enable"
12+
zero_code_change_test: "disable"
13+
phases:
14+
install:
15+
commands:
16+
- apt-get update
17+
- apt-get install sudo -qq -o=Dpkg::Use-Pty=0
18+
- sudo apt-get install unzip -qq -o=Dpkg::Use-Pty=0
19+
- cd $CODEBUILD_SRC_DIR && chmod +x config/protoc_downloader.sh && ./config/protoc_downloader.sh
20+
- pip install --upgrade pip==19.3.1
21+
- pip install -q pytest pytest-cov wheel pyYaml pytest-html keras==2.3.1 mxnet torch xgboost pre-commit tensorflow_datasets torchvision
22+
- cd $CODEBUILD_SRC_DIR && chmod +x config/install_smdebug.sh && chmod +x config/check_smdebug_install.sh && ./config/install_smdebug.sh;
23+
24+
build:
25+
commands:
26+
- cd $CODEBUILD_SRC_DIR && chmod +x config/tests.sh && PYTHONPATH=. ./config/tests.sh
27+
- cd $CODEBUILD_SRC_DIR_RULES && chmod +x config/tests.sh && PYTHONPATH=. ./config/tests.sh
28+
29+
post_build:
30+
commands:
31+
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 0 ]; then echo "ERROR BUILD FAILED " && exit 1 ; fi
32+
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 1 ]; then echo "INFO BUILD SUCCEEDED !!! " ; fi

0 commit comments

Comments
 (0)