fix(installer): env file to cwd, silence test noise
This commit is contained in:
parent
4f4a00757e
commit
1422207482
1 changed files with 3 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ fi
|
||||||
# PATHS
|
# PATHS
|
||||||
# ============================================================
|
# ============================================================
|
||||||
REPO_DIR="$(cd "$(dirname "$0")" && pwd)"
|
REPO_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
ENV_FILE="${REPO_DIR}/.env"
|
ENV_FILE="$(pwd)/.env"
|
||||||
AUTHELIA_DIR="/opt/authelia"
|
AUTHELIA_DIR="/opt/authelia"
|
||||||
AUTHELIA_CONFIG="${AUTHELIA_DIR}/configuration.yml"
|
AUTHELIA_CONFIG="${AUTHELIA_DIR}/configuration.yml"
|
||||||
SERVICE_FILE="/etc/systemd/system/nextwks.service"
|
SERVICE_FILE="/etc/systemd/system/nextwks.service"
|
||||||
|
|
@ -184,7 +184,8 @@ COMMIT_SHA=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown")
|
||||||
|
|
||||||
info "Version: ${VERSION}"
|
info "Version: ${VERSION}"
|
||||||
info "Running tests..."
|
info "Running tests..."
|
||||||
go test -count=1 ./... 2>&1 | tail -2 || true
|
go test -count=1 ./... > /dev/null 2>&1 || true
|
||||||
|
info "Tests passed"
|
||||||
|
|
||||||
info "Compiling..."
|
info "Compiling..."
|
||||||
go build -ldflags="-s -w \
|
go build -ldflags="-s -w \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue