chore(auth): auto start oauth2 mock server in develop
This commit is contained in:
parent
d4cfce317d
commit
fafa25a7b5
@ -62,6 +62,7 @@ let
|
||||
type cleanup_minio &>/dev/null && cleanup_minio
|
||||
type cleanup_maildev &>/dev/null && cleanup_maildev
|
||||
[[ -z "$OAUTH2_PGDIR" ]] || source ${killOauth2DB}/bin/killOauth2DB
|
||||
[[ -z "$OAUTH2_PGHOST" ]] || pkill oauth2-mock-ser
|
||||
|
||||
[ -f "''${basePath}/.develop.env" ] && rm -vf "''${basePath}/.develop.env"
|
||||
set +x
|
||||
@ -74,6 +75,7 @@ let
|
||||
if [[ -z "$OAUTH2_PGHOST" ]]; then
|
||||
set -xe
|
||||
source ${mkOauth2DB}/bin/mkOauth2DB
|
||||
${oauth2MockServer}/bin/oauth2-mock-server&
|
||||
set +xe
|
||||
fi
|
||||
|
||||
@ -300,7 +302,7 @@ in pkgs.mkShell {
|
||||
OAUTH2_TEST_USERS = ./test/Database/test-users.yaml;
|
||||
OAUTH2_SERVER_PORT = 9443;
|
||||
OAUTH2_DB_PORT = 9444;
|
||||
nativeBuildInputs = [develop inDevelop killallUni2work diffRunning oauth2MockServer]
|
||||
nativeBuildInputs = [develop inDevelop killallUni2work diffRunning]
|
||||
++ (with pkgs;
|
||||
[ stack nodejs-14_x postgresql_12 openldap exiftool memcached minio minio-client
|
||||
gup reuse pre-commit
|
||||
|
||||
Reference in New Issue
Block a user