Skip to content

Commit 14ad65a

Browse files
authored
Add TEST_RUN var
Signed-off-by: GitHub <noreply@github.com>
1 parent f862696 commit 14ad65a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

jenkins-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ repo_vars:
2525
- CI_PORT='80'
2626
- CI_SSL='false'
2727
- CI_DELAY='120'
28-
- CI_DOCKERENV='TZ=US/Pacific'
28+
- CI_DOCKERENV='TZ=US/Pacific|TEST_RUN=1'
2929
- CI_AUTH='user:password'
3030
- CI_WEBPATH=''

root/etc/s6-overlay/s6-rc.d/init-kimai-config/run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4+
# Echo init finish for test runs
5+
if [ -n "${TEST_RUN}" ]; then
6+
echo '[ls.io-init] done.'
7+
fi
8+
49
DB_VALID=$(php -r 'echo filter_var(getenv("DATABASE_URL"), FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED);')
510

611
if [[ ${DATABASE_URL+x} == "" ]] || [[ ${DB_VALID+x} == "NULL" ]]; then

0 commit comments

Comments
 (0)