-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
43 lines (43 loc) · 984 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
43
version: 0.2
env:
shell: bash
variables:
APP_NAME: dynamodbStreamEvents
phases:
install:
runtime-versions:
python: 3.11
build:
on-failure: ABORT
commands:
- 'cd "${CODEBUILD_SRC_DIR}/${PROJECT_SUBDIR}"'
- 'make lint-report || :'
- 'make test-report'
- 'make build'
post_build:
on-failure: ABORT
commands:
- 'cd "${CODEBUILD_SRC_DIR}/${PROJECT_SUBDIR}"'
- |
if [[ -n $PACKAGE_BUCKET || $PACKAGE_COUNT -gt 0 ]]; then
make package
fi
rtifacts:
files:
- $APP_NAME.zip
base-directory: $CODEBUILD_SRC_DIR/$PROJECT_SUBDIR/dist/
discard-paths: yes
reports:
pylint:
files:
- pylint.xml
base-directory: $CODEBUILD_SRC_DIR/$PROJECT_SUBDIR/reports/
file-format: JUNITXML
pytest:
files:
- pytest.xml
base-directory: $CODEBUILD_SRC_DIR/$PROJECT_SUBDIR/reports/
file-format: JUNITXML
cache:
paths:
- $CODEBUILD_SRC_DIR/$PROJECT_SUBDIR/.venv