/
buildspec_vanilla_framework_tests.yml
36 lines (33 loc) · 1.95 KB
/
buildspec_vanilla_framework_tests.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
36
version: 0.2
env:
variables:
run_pytest_pytorch: "enable"
run_pytest_mxnet: "enable"
run_pytest_tensorflow: "enable"
run_pytest_xgboost: "enable"
run_integration_pytest_pytorch: "enable"
run_integration_pytest_mxnet: "enable"
run_pytest_profiler: "disable"
run_integration_pytest_tensorflow2: "disable"
run_integration_pytest_tensorflow: "enable"
run_integration_pytest_xgboost: "enable"
zero_code_change_test: "disable"
build_type: "pr" # must be one of pr, nightly or release
phases:
install:
commands:
- apt-get update
- apt-get install sudo -qq -o=Dpkg::Use-Pty=0
- sudo apt-get install unzip -qq -o=Dpkg::Use-Pty=0
- pip install --upgrade pip==20.3.3
- pip install -q -U pytest pytest-cov wheel pyYaml pytest-html keras==2.3.1 mxnet==1.6.0 torch==1.8.0 xgboost==1.3.3 pre-commit tensorflow_datasets==4.0.1 torchvision ipython_genutils==0.2.0 nbconvert==6.4.4 papermill==2.3.4 simplejson==3.17.2
- if [ "$stable_release" ]; then echo "Installing from S3" && cd $CODEBUILD_SRC_DIR && chmod +x config/install_smdebug.sh && chmod +x config/check_smdebug_install.sh && ./config/install_smdebug.sh; else echo "Installing NOT from S3" && cd $CODEBUILD_SRC_DIR && python setup.py bdist_wheel --universal && cd $CODEBUILD_SRC_DIR_RULES && python setup.py bdist_wheel --universal && cd $CODEBUILD_SRC_DIR && pip install --force-reinstall dist/*.whl && cd ..; fi
- pip install --force-reinstall numpy==1.18.5
build:
commands:
- cd $CODEBUILD_SRC_DIR && chmod +x config/tests.sh && PYTHONPATH=. ./config/tests.sh
- if [ "$build_type" != "pr" ]; then cd $CODEBUILD_SRC_DIR_RULES && chmod +x config/tests.sh && PYTHONPATH=. ./config/tests.sh; fi
post_build:
commands:
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 0 ]; then echo "ERROR BUILD FAILED " && exit 1 ; fi
- if [ "$CODEBUILD_BUILD_SUCCEEDING" -eq 1 ]; then echo "INFO BUILD SUCCEEDED !!! " ; fi