This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3-master' into de-cf-schema-tree
* v3-master: Fix cf summary unit test failures - cf now has dependency on autoscaler - see #3916 catalogue: fixed initial state that was overwritten Travis: Build once and share build in e2e tests (#3901) Improve user clean up Ensure MB is only shown for memory based quota values in edit quota forms (#3892) Fix domains in create app shell stepper Fix git commit world WIP Fix two actionBuilder params issues - Fix three places where `includeRelations` were passed incorrectly to actionBuilder - Fix bind service Ensure multi endpoint requests only go out to connected/unconnectable endpoints - Fixes #3887 Travis: Build once and share build in e2e tests (#3901) Improve user clean up Ensure MB is only shown for memory based quota values in edit quota forms (#3892) Add support for view and edit profile for local user (#3883) Add fix to wait until delete indicator has been removed (#3889) FIx setup detection for local users (#3888) Ensure stepper buttons are always visible and content scrolls (#3890) E2E Test should run as user not admin (#3894)
- Loading branch information
Showing
51 changed files
with
818 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/bin/bash | ||
|
||
echo "Stratos e2e build" | ||
echo "=================" | ||
|
||
MC_HOST="s3" | ||
|
||
LOCAL_BUILD="true" | ||
|
||
# Use Travis env vars: | ||
# TRAVIS_PULL_REQUEST | ||
# TRAVIS_REPO_SLUG | ||
# TRAVIS_COMMIT | ||
|
||
if [ -z "$TRAVIS_REPO_SLUG" ]; then | ||
echo "Need to be running in Trvis" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$TRAVIS_COMMIT" ]; then | ||
echo "Need to be running in Trvis" | ||
exit 1 | ||
fi | ||
|
||
GIT_ID="${TRAVIS_REPO_SLUG}_${TRAVIS_COMMIT}_${TRAVIS_PULL_REQUEST}" | ||
GIT_ID="${GIT_ID//\//_}" | ||
echo $GIT_ID | ||
|
||
TAR_NAME="${GIT_ID}.tar" | ||
GZIP_NAME="${GIT_ID}.tgz" | ||
|
||
# Ensure we have the mc command | ||
DIRNAME="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
source "${DIRNAME}/e2e-mc-helper.sh" | ||
|
||
function tryGetExistingBuild() { | ||
echo "Looking for existing build: ${GIT_ID}" | ||
|
||
mc cp -q --insecure ${MC_HOST}/${S3_BUILDS_BUCKET}/${GZIP_NAME} ./ | ||
if [ $? -eq 0 ]; then | ||
# We found an existing build, so download and unpack it | ||
echo "Downloading build package" | ||
tar -xvf ${GZIP_NAME} | ||
if [ $? -eq 0 ]; then | ||
LOCAL_BUILD="false" | ||
fi | ||
rm -rf ${GZIP_NAME} | ||
fi | ||
} | ||
|
||
if [ -n "${AWS_ENDPOINT}" ]; then | ||
tryGetExistingBuild | ||
fi | ||
|
||
if [ "${LOCAL_BUILD}" == "false" ]; then | ||
echo "Downloaded and unpacked an existing build - no need to build locally" | ||
else | ||
|
||
set -e | ||
|
||
# Get go | ||
curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | ||
chmod +x ~/bin/gimme | ||
eval "$(gimme 1.12.4)" | ||
go version | ||
|
||
npm run build | ||
npm run build-backend | ||
|
||
set +e | ||
tar cvfz ${GZIP_NAME} dist/* src/jetstream/jetstream | ||
|
||
# Upload | ||
mc cp -q --insecure ${GZIP_NAME} ${MC_HOST}/${S3_BUILDS_BUCKET} | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Helper for mc command | ||
|
||
mc version > /dev/null | ||
if [ $? -eq 0 ]; then | ||
echo "mc command already installed and confgiured" | ||
else | ||
echo "Installing and configuring mc command ..." | ||
|
||
wget https://dl.minio.io/client/mc/release/linux-amd64/mc | ||
chmod +x mc | ||
cp mc ~/bin | ||
|
||
mc -install -y >/dev/null 2>&1 | ||
|
||
echo "Configuring mc client" | ||
mc config host add s3 ${AWS_ENDPOINT} ${AWS_ACCESS_KEY_ID} ${AWS_SECRET_ACCESS_KEY} --insecure | ||
|
||
echo "mc command ready" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.