forked from anujdevopslearn/SonarQubeNodeJS
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuildspec.yml
More file actions
62 lines (61 loc) · 1.2 KB
/
buildspec.yml
File metadata and controls
62 lines (61 loc) · 1.2 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: 0.2
env:
variables:
projectName: "CounterApp"
mavenGoal: "install"
#parameter-store:
# key: "value"
# key: "value"
#secrets-manager:
# key: secret-id:json-key:version-stage:version-id
# key: secret-id:json-key:version-stage:version-id
#exported-variables:
# - variable
# - variable
#git-credential-helper: yes
#batch:
#fast-fail: true
#build-list:
#build-matrix:
#build-graph:
phases:
install:
runtime-versions:
nodejs: 20
# name: version
commands:
- "apt update && apt -y install tree"
# - command
pre_build:
commands:
- "npm install"
# - command
build:
commands:
- npm run build --if-present
- ls -lart
- npm run test
- node -v
post_build:
commands:
- "npm run test:e2e"
- "zip -r dist.zip dist"
#reports:
#report-name-or-arn:
#files:
# - location
# - location
#base-directory: location
#discard-paths: yes
#file-format: JunitXml | CucumberJson
artifacts:
files:
# - "dist.zip"
- "dist/*"
name: $(date +%Y-%m-%d)
discard-paths: yes
base-directory: .
#cache:
#paths:
# - paths
#test commit