forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yaml
32 lines (29 loc) · 849 Bytes
/
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
version: 0.2
# This buildspec is intended to be run by CodePipeline builds.
phases:
install:
commands:
# Start docker daemon inside the container
- nohup /usr/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
# Install yarn if it wasn't already present in the image
- yarn --version || npm -g install yarn
pre_build:
commands:
- /bin/bash ./fetch-dotnet-snk.sh
build:
commands:
- /bin/bash ./scripts/align-version.sh
- /bin/bash ./build.sh
post_build:
commands:
- "[ -f .BUILD_COMPLETED ] && /bin/bash ./pack.sh"
artifacts:
files:
- "**/*"
base-directory: dist
reports:
jest-tests:
files:
- "**/junit.xml"
file-format: JunitXml