Skip to content

Commit e7179ca

Browse files
committed
Run integration migrations with CLI binary
1 parent af1116a commit e7179ca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/integration-test-helpers_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ test_start_integration_stack_runs_migrate_before_starting_ccg() {
205205

206206
start_integration_stack
207207

208-
assert_equals $'up -d postgres gitea\nbuild ccg\nrun --rm --no-deps ccg migrate\nup -d ccg' "$(printf '%s\n' "${compose_calls[@]}")"
208+
assert_equals $'up -d postgres gitea\nbuild ccg\nrun --rm --no-deps --entrypoint ccg ccg migrate\nup -d ccg' "$(printf '%s\n' "${compose_calls[@]}")"
209209
assert_equals $'postgres:30:PostgreSQL\nhealth:http://localhost:3000/api/v1/version:30:Gitea\nhealth:http://localhost:18080/ready:30:ccg' "$(printf '%s\n' "${wait_calls[@]}")"
210210
}
211211

scripts/integration-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ start_integration_stack() {
117117
wait_for_health "$GITEA_URL/api/v1/version" 30 "Gitea"
118118

119119
info "Running ccg migrations..."
120-
compose run --rm --no-deps ccg migrate
120+
compose run --rm --no-deps --entrypoint ccg ccg migrate
121121

122122
info "Starting ccg..."
123123
compose up -d ccg

0 commit comments

Comments
 (0)