forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yaml
40 lines (35 loc) · 1.09 KB
/
buildspec.yaml
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
version: 0.2
# This buildspec is intended to be run by CodePipeline builds.
phases:
install:
commands:
# baked in our image.
# this also takes care of launching the docker daemon.
- /root/ecr-proxy/start.sh
# Install yarn if it wasn't already present in the image
- yarn --version || npm -g install yarn
# Packing the mono-libraries (monocdk & aws-cdk-lib) can cause
# memory errors. Increasing this value allows our build to more consistently succeed
- /sbin/sysctl -w vm.max_map_count=2251954
pre_build:
commands:
- /bin/bash ./scripts/cache-load.sh
build:
commands:
- 'if ${BUMP_CANDIDATE:-false}; then /bin/bash ./scripts/bump-candidate.sh; fi'
- /bin/bash ./scripts/align-version.sh
- /bin/bash ./build.sh
- /bin/bash ./scripts/transform.sh
post_build:
commands:
- "[ -f .BUILD_COMPLETED ] && /bin/bash ./pack.sh"
- /bin/bash ./scripts/cache-store.sh
artifacts:
files:
- "**/*"
base-directory: dist
reports:
jest-tests:
files:
- "**/junit.xml"
file-format: JunitXml