Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ services:
- DB_PREFIX=chq_
- APP_KEY=${APP_KEY:-null}
- APP_LOG=errorlog
- APP_ENV=${APP_ENV:-production}
- APP_DEBUG=false
- DEBUG=false
depends_on:
- postgres
Expand Down
2 changes: 0 additions & 2 deletions test/test.full.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ load docker_helpers
load "lib/batslib"
load "lib/output"

export APP_KEY="base64:v2LwHrdgnE+RavEXdnF8LgWIibjvEcFkU2qaX5Ji708="

@test "[$TEST_FILE] testing Cachet Docker image build" {
command docker-compose build --no-cache cachet
}
Expand Down
2 changes: 0 additions & 2 deletions test/test.mysql.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ load docker_helpers
load "lib/batslib"
load "lib/output"

export APP_KEY="base64:v2LwHrdgnE+RavEXdnF8LgWIibjvEcFkU2qaX5Ji708="

@test "[$TEST_FILE] docker-compose up" {
command docker-compose -f test/docker-compose-mysql.yml up -d
}
Expand Down
2 changes: 0 additions & 2 deletions test/test.sqlite.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ load docker_helpers
load "lib/batslib"
load "lib/output"

export APP_KEY="base64:v2LwHrdgnE+RavEXdnF8LgWIibjvEcFkU2qaX5Ji708="

@test "[$TEST_FILE] docker-compose up" {
command docker-compose -f test/docker-compose-sqlite.yml up -d
}
Expand Down
4 changes: 4 additions & 0 deletions test/test_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
type docker &>/dev/null || ( echo "docker is not available"; exit 1 )
)>&2

# ENV vars for tests
export APP_ENV=development
export APP_KEY="base64:v2LwHrdgnE+RavEXdnF8LgWIibjvEcFkU2qaX5Ji708="

TEST_FILE=$(basename $BATS_TEST_FILENAME .bats)

# stop all containers with the "bats-type" label (matching the optionally supplied value)
Expand Down