Skip to content

Commit

Permalink
Add default Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
qbart committed Jan 11, 2022
1 parent e18e4dd commit d27f21c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
.PHONY: build install test docker_test docker_build docker_push docker_nightly
.PHONY: default build install test docker_test docker_build docker_push docker_nightly

default:
export DATABASE_URL="postgres://krab:secret@localhost:5432/krab?sslmode=disable"
export KRAB_ENV=test
export KRAB_DIR=./test/fixtures/tests
make build
./bin/krab test versions
ok

build:
mkdir -p bin/
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/tests/versions.krab.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ migration "create_version_type" {
SQL
}

down { sql = "DROP TYPE sem_version " }
down { sql = "DROP TYPE sem_version" }
}

migration "create_version_function" {
Expand All @@ -23,7 +23,7 @@ migration "create_version_function" {
AS
$$
DECLARE
_v version;
_v sem_version;
BEGIN
_v := _ver;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/tests/versions_test.krab.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test_suite "versions" {
before {
do {
inputs = {
schema = "aaa"
schema = "testing"
}

migrate "up" { migration_set = migration_set.versions }
Expand Down

0 comments on commit d27f21c

Please sign in to comment.