forked from cBioPortal/cbioportal-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- change `sh` to `bash`, as not all shells are compatible with the `<<<` in the e2e scripts - added `e2e:spindown` command. It just runs `docker-compose down` - added some documentation on how to verify that the server is running
- Loading branch information
1 parent
4c469d5
commit 790cb08
Showing
4 changed files
with
68 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -u # unset variables throw error | ||
set -o pipefail # pipes fail when partial command fails | ||
shopt -s nullglob # allows files and dir globs to be null - needed in 'for ... do' loops that should not run when no files/dirs are detected by expansion | ||
|
||
DIR=$PWD | ||
|
||
cd $E2E_WORKSPACE/cbioportal-docker-compose | ||
|
||
compose_extensions="-f docker-compose.yml -f $TEST_HOME/docker_compose/cbioportal.yml -f $TEST_HOME/docker_compose/keycloak.yml" | ||
if [ $CUSTOM_BACKEND -eq 1 ]; then | ||
compose_extensions="$compose_extensions -f $TEST_HOME/docker_compose/cbioportal-custombranch.yml" | ||
fi | ||
|
||
if (ls "$KC_DB_DATA_DIR"/* 2> /dev/null > /dev/null); then | ||
compose_extensions="$compose_extensions -f $TEST_HOME/docker_compose/keycloak_init.yml" | ||
fi | ||
|
||
docker-compose $compose_extensions down | ||
|
||
exit 0 |
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 @@ | ||
MY_PATH="`dirname \"$0\"`" # relative | ||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized | ||
if [ -z "$MY_PATH" ] ; then | ||
# error; for some reason, the path is not accessible | ||
# to the script (e.g. permissions re-evaled after suid) | ||
exit 1 # fail | ||
fi | ||
|
||
|
||
export PORTAL_SOURCE_DIR=$PWD; | ||
|
||
export TEST_HOME=$PORTAL_SOURCE_DIR/end-to-end-test/local | ||
export E2E_WORKSPACE=$PORTAL_SOURCE_DIR/e2e-localdb-workspace | ||
export DB_DATA_DIR=$E2E_WORKSPACE/cbio_db_data | ||
|
||
cd $PORTAL_SOURCE_DIR | ||
|
||
export BACKEND=cbioportal:master | ||
export BRANCH_ENV="http://localhost:8080" | ||
export GENOME_NEXUS_URL="https://www.genomenexus.org" | ||
|
||
echo "$TEST_HOME" | ||
|
||
$($TEST_HOME/runtime-config/setup_environment.sh) | ||
$($TEST_HOME/runtime-config/setup_environment.sh) | ||
|
||
$TEST_HOME/docker_compose/stop.sh | ||
|
||
export CBIOPORTAL_URL=http://localhost:8080 | ||
|
||
cd end-to-end-test |