forked from circlefin/stablecoin-evm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildspec.yaml
28 lines (26 loc) · 935 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
version: 0.2
phases:
install:
commands:
- npm install -g yarn@^1.9.2
- npm install -g [email protected]
- yarn install --frozen-lockfile
#- npm install
build:
commands:
- echo Build started on `date`
- yarn check --integrity
- mkdir -p build/logs
- truffle compile
- npm test
post_build:
commands:
- isPR=$(echo $CODEBUILD_SOURCE_VERSION | grep -c 'pr/') || true
- succeeded=$CODEBUILD_BUILD_SUCCEEDING
- echo "isPR status:${isPR}"
- echo "succeeded status:${succeeded}"
- if [ $isPR -ne 1 ] && [ $succeeded -ne 1 ]; then echo "Build failed in main repo -- sending notification"; aws sns publish --topic-arn ${FailedBuildTopic} --message "Build Notification - centre-tokens build failed!"; else echo "Build succeeded and/or PR build -- not sending notification"; fi
artifacts:
files:
- build/contracts/*
- coverage/**/*