WIP: compose
This commit is contained in:
parent
ef735020b4
commit
994f177504
|
@ -1,5 +1,5 @@
|
||||||
# It may be tempting to add parens around each individual clause in this expression, but Travis then builds pushes anyway
|
# 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:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
|
@ -15,6 +15,7 @@ git:
|
||||||
depth: false
|
depth: false
|
||||||
before_install:
|
before_install:
|
||||||
- git clone https://github.com/pulumi/scripts ${GOPATH}/src/github.com/pulumi/scripts
|
- 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 ${GOPATH}/src/github.com/pulumi/scripts/ci/prepare-environment.sh
|
||||||
- source ${PULUMI_SCRIPTS}/ci/keep-failed-tests.sh
|
- source ${PULUMI_SCRIPTS}/ci/keep-failed-tests.sh
|
||||||
install:
|
install:
|
||||||
|
|
6
scripts/compose-skip-build
Executable file
6
scripts/compose-skip-build
Executable 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" ]
|
21
scripts/publish-compose-artifacts
Executable file
21
scripts/publish-compose-artifacts
Executable 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
|
Loading…
Reference in a new issue