Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 4abb010

Browse files
committed
Enhancement: Add test target to Makefile
1 parent 5629ef9 commit 4abb010

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ composer:
66

77
cs: composer
88
vendor/bin/php-cs-fixer fix --config-file=.php_cs --diff --verbose
9+
10+
test: composer
11+
cp config/autoload/travis.php.local.dist config/autoload/travis.local.php
12+
mysql -uroot -e 'DROP DATABASE IF EXISTS modules_test;'
13+
mysql -uroot -e 'CREATE DATABASE modules_test;'
14+
mysql -uroot modules_test < data/sql/0.sql
15+
vendor/bin/phpunit --configuration phpunit.xml
16+
rm config/autoload/travis.local.php

0 commit comments

Comments
 (0)