-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
45 lines (45 loc) · 1.03 KB
/
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
44
45
version: 0.2
env:
shell: bash
variables:
APP_NAME: cweventFormat
phases:
install:
runtime-versions:
nodejs: 20
python: 3.12
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
[[ -z $ENVIRONMENT ]] || make package-${ENVIRONMENT}
fi
artifacts:
files:
- $APP_NAME.zip
discard-paths: yes
base-directory: $CODEBUILD_SRC_DIR/$PROJECT_SUBDIR/dist/
reports:
eslint:
files:
- eslint.xml
base-directory: $CODEBUILD_SRC_DIR/$PROJECT_SUBDIR/reports/
file-format: JUNITXML
mocha:
files:
- mocha.xml
base-directory: $CODEBUILD_SRC_DIR/$PROJECT_SUBDIR/reports/
file-format: JUNITXML
cache:
paths:
- $CODEBUILD_SRC_DIR/$PROJECT_SUBDIR/node_modules