Skip to content

Commit

Permalink
chore: Fork Github PR builds to separate spec (#2740)
Browse files Browse the repository at this point in the history
Instead of trying to use one single spec that achieves both releasable
builds as well as PR builds, use a different buildspec file for each,
so the PR builds can be made more efficient.
  • Loading branch information
RomainMuller authored Jun 4, 2019
1 parent ff0ef73 commit 0e101d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
11 changes: 11 additions & 0 deletions buildspec-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 0.2

# This buildspec is intended to be used by GitHub PR builds.

phases:
install:
commands:
- /bin/bash ./install.sh
build:
commands:
- /bin/bash ./build.sh
9 changes: 3 additions & 6 deletions buildspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: 0.2

# This buildspec is intended to be run by CodePipeline builds.

phases:
install:
commands:
Expand All @@ -12,12 +14,7 @@ phases:
- /bin/bash ./build.sh
post_build:
commands:
- |
if [ -f .BUILD_COMPLETED ]; then
if [ -z \"${SKIP_PACK:-}\" ]; then
/bin/bash ./pack.sh
fi
fi
- "[ -f .BUILD_COMPLETED ] && /bin/bash ./pack.sh"
artifacts:
files:
- "**/*"
Expand Down

0 comments on commit 0e101d5

Please sign in to comment.