-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run lettuce against prod release (#41)
lettuce: run tests against prod stack, options to control which tests are run
- Loading branch information
Showing
13 changed files
with
287 additions
and
153 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
trap exit SIGHUP SIGINT SIGTERM | ||
env | grep -iv PASS | sort | ||
|
||
# prepare a tarball of build | ||
if [ "$1" = 'releasetarball' ]; then | ||
echo "[Run] Preparing a release tarball" | ||
|
||
set -e | ||
cd /app | ||
rm -rf /app/* | ||
echo $GIT_TAG | ||
set -x | ||
git clone --depth=1 --branch=${GIT_TAG} ${PROJECT_SOURCE} . | ||
git ls-remote ${PROJECT_SOURCE} ${GIT_TAG} > .version | ||
|
||
# Note: Environment vars are used to control the behaviour of pip (use local devpi for instance) | ||
pip install -e rdrf | ||
set +x | ||
|
||
# create release tarball | ||
DEPS="/env /app/uwsgi /app/docker-entrypoint.sh /app/rdrf /app/scripts" | ||
cd /data | ||
exec tar -cpzf ${PROJECT_NAME}-${GIT_TAG}.tar.gz ${DEPS} | ||
fi | ||
|
||
echo "[RUN]: Builtin command not provided [releasetarball]" | ||
echo "[RUN]: $@" | ||
|
||
exec "$@" |
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.