-
Notifications
You must be signed in to change notification settings - Fork 7
/
codebuild-buildspec-test.yml
64 lines (63 loc) · 1.63 KB
/
codebuild-buildspec-test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: 0.2
env:
#variables:
# key: "value"
# key: "value"
parameter-store:
GITHUB_URL: "/CodeBuild/fez-frontend/GITHUB_URL"
PT_PROJECT: "/CodeBuild/fez-frontend/PT_PROJECT"
PT_TOKEN: "/CodeBuild/fez-frontend/PT_TOKEN"
CYPRESS_RECORD_KEY: "/CodeBuild/fez-frontend/CYPRESS_RECORD_KEY"
GOOGLE_MAPS_API_KEY: "/CodeBuild/fez-frontend/GOOGLE_MAPS_API_KEY"
SENTRY_AUTH_TOKEN: "/CodeBuild/fez-frontend/SENTRY_AUTH_TOKEN"
SENTRY_ORG: "/CodeBuild/fez-frontend/SENTRY_ORG"
SENTRY_PROJECT: "/CodeBuild/fez-frontend/SENTRY_PROJECT"
#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:
java: corretto17
nodejs: 20
commands:
- n 20
# - command
pre_build:
commands:
sysctl fs.inotify.max_user_watches &&
sysctl fs.inotify.max_user_watches=524288 &&
sysctl fs.inotify.max_user_watches &&
chmod a+x -R bin/* scripts/*.sh &&
bin/codebuild-git-wrapper.sh $GITHUB_URL $CI_BRANCH &&
bin/codebuild-setup.sh
build:
commands:
set &&
bin/codebuild-test.sh
#post_build:
#commands:
# - command
# - command
reports:
coverage-report:
files:
- 'coverage/cobertura-coverage.xml'
file-format: 'COBERTURAXML'
artifacts:
files:
- '**/*'
name: builds/$CODEBUILD_BUILD_NUMBER/coverage
base-directory: coverage
#cache:
#paths:
# - paths