Skip to content

Commit

Permalink
Let travis run more PHP versions and run phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested committed Jun 27, 2017
1 parent 087fc03 commit e078ab9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
/box.json export-ignore
/examples export-ignore
/phpcs.xml export-ignore
/phpunit.xml export-ignore
/tests export-ignore

/examples linguist-documentation
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
language: php
php:
- '7.0'
before_install:
- composer global require kherge/box --prefer-dist
- '7.1'
- nightly
install:
- composer install --prefer-dist
script:
- true
after_success:
- composer global require kherge/box --prefer-dist
- composer install --no-dev
- ~/.composer/vendor/bin/box build --no-interaction
deploy:
skip_cleanup: true
Expand All @@ -18,3 +18,4 @@ deploy:
on:
repo: spejder/msml
tags: true
php: '7.0'
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
],
"require-dev": {
"squizlabs/php_codesniffer": "^3.0",
"kherge/box": "^2.7"
"kherge/box": "^2.7",
"phpunit/phpunit": "^6.1"
}
}
10 changes: 10 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php"
colors="true"
stopOnFailure="false">
<testsuites>
<testsuite>
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>
1 change: 1 addition & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test cases

0 comments on commit e078ab9

Please sign in to comment.