summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-25 14:34:46 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-25 14:34:46 -0400
commit922e0fb6de06a98774418612e0b0f75af72b6dbb (patch)
treedff0b7c2c8cd0515b22c8f320cdcf58c47515a98 /Makefile
parentfc93203e4db044d37c1686fef0efb1ac1d6ac4b8 (diff)
Rewrite integration tests to run with Docker containers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6ffba241..47e9d389 100644
--- a/Makefile
+++ b/Makefile
@@ -58,7 +58,28 @@ test-postgres:
unittest: test-sqlite test-mysql test-postgres
test-browser:
- @ phpunit -c tests/acceptance.xml
+ @ phpunit -c tests/acceptance.xml
+
+integration-test-mysql:
+ @ composer install
+ @ docker-compose -f tests/docker/compose.integration.mysql.yaml build
+ @ docker-compose -f tests/docker/compose.integration.mysql.yaml up -d mysql app
+ @ docker-compose -f tests/docker/compose.integration.mysql.yaml up tests
+ @ docker-compose -f tests/docker/compose.integration.mysql.yaml down
+
+integration-test-postgres:
+ @ composer install
+ @ docker-compose -f tests/docker/compose.integration.postgres.yaml build
+ @ docker-compose -f tests/docker/compose.integration.postgres.yaml up -d postgres app
+ @ docker-compose -f tests/docker/compose.integration.postgres.yaml up tests
+ @ docker-compose -f tests/docker/compose.integration.postgres.yaml down
+
+integration-test-sqlite:
+ @ composer install
+ @ docker-compose -f tests/docker/compose.integration.sqlite.yaml build
+ @ docker-compose -f tests/docker/compose.integration.sqlite.yaml up -d app
+ @ docker-compose -f tests/docker/compose.integration.sqlite.yaml up tests
+ @ docker-compose -f tests/docker/compose.integration.sqlite.yaml down
sql:
@ pg_dump --schema-only --no-owner --no-privileges --quote-all-identifiers -n public --file app/Schema/Sql/postgres.sql kanboard