mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-11-10 18:50:52 +03:00
18 lines
434 B
Bash
18 lines
434 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
IFS=$'\n\t'
|
||
|
CLI_ROOT="${BASH_SOURCE[0]%/*}/../cli"
|
||
|
|
||
|
cd "$CLI_ROOT"
|
||
|
mkdir -p /build/_cli_output
|
||
|
touch /build/_cli_output/server.log
|
||
|
|
||
|
# start graphql-engine
|
||
|
/build/_server_output/graphql-engine \
|
||
|
--database-url postgres://gql_test@localhost:5432/gql_test serve > /build/_cli_output/server.log 2>&1 &
|
||
|
#PID=$!
|
||
|
|
||
|
# test cli
|
||
|
HASURA_GRAPHQL_TEST_ENDPOINT="http://localhost:8080" make test
|
||
|
#kill $PID
|