WIP: compose

This commit is contained in:
Matt Ellis 2018-08-13 14:36:01 -07:00
parent ef735020b4
commit 994f177504
3 changed files with 29 additions and 1 deletions

View file

@ -1,5 +1,5 @@
# It may be tempting to add parens around each individual clause in this expression, but Travis then builds pushes anyway
if: branch = master OR branch =~ ^features/ OR branch =~ ^release/ OR tag IS present
if: branch = master OR branch =~ ^release/ OR tag IS present OR type = api
matrix:
include:
- os: linux
@ -15,6 +15,7 @@ git:
depth: false
before_install:
- git clone https://github.com/pulumi/scripts ${GOPATH}/src/github.com/pulumi/scripts
- git -C ${GOPATH}/src/github.com/pulumi/scripts checkout origin/feature/ellismg/compose-build
- source ${GOPATH}/src/github.com/pulumi/scripts/ci/prepare-environment.sh
- source ${PULUMI_SCRIPTS}/ci/keep-failed-tests.sh
install:

6
scripts/compose-skip-build Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# When doing a composed build, we only care about the leg that would publish packages.
# We have additional legs that test other versions of node, which are un-interesting
# in a composed build.
[ "${TRAVIS_PUBLISH_PACKAGES}" != "true" ]

View file

@ -0,0 +1,21 @@
#!/bin/bash
set -eou pipefail
source "${PULUMI_SCRIPTS}/compose/util.sh"
if [ -z "${1:-}" ]; then
echo "usage: $0 <s3-prefix>"
exit 1
fi
S3_ROOT="$1"
compose-publish-nodejs-package "./sdk/nodejs/bin" "${S3_ROOT}"
compose-publish-binary "${PULUMI_ROOT}/bin/pulumi" "${S3_ROOT}"
for resource in "${PULUMI_ROOT}/bin/"pulumi-resource-pulumi-*; do
compose-publish-binary "${resource}" "${S3_ROOT}"
done
for language in "${PULUMI_ROOT}/bin/"pulumi-language-*; do
compose-publish-binary "${language}" "${S3_ROOT}"
done