Skip to content

Commit 03cabc0

Browse files
committed
get travis running the phpunit tests
1 parent f7f2e2f commit 03cabc0

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
composer.phar
2+
composer.lock
3+
vendor/
4+

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: php
2+
3+
php:
4+
- '5.4'
5+
- '5.6'
6+
- '7.0'
7+
- hhvm # on Trusty only
8+
- nightly
9+
10+
install:
11+
- composer self-update
12+
- composer install
13+

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ all:
22
@echo "Future build step will go here";
33

44
test:
5-
@phpunit --bootstrap src/SQLParser.php --testdox tests
5+
@phpunit --testdox

phpunit.xml.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="src/SQLParser.php" verbose="true" testdox="true">
3+
<testsuites>
4+
<testsuite name="unit">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<logging>
9+
<log type="coverage-clover" target="clover.xml"/>
10+
</logging>
11+
</phpunit>

0 commit comments

Comments
 (0)