Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8 from niels-nijens/testsuite-and-ci
Browse files Browse the repository at this point in the history
Add testsuite and Travis CI
  • Loading branch information
niels-nijens committed Feb 6, 2017
2 parents b0a9cd8 + 1a2fe20 commit 15eaf18
Show file tree
Hide file tree
Showing 4 changed files with 441 additions and 721 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: php

sudo: false

matrix:
include:
- php: 5.6
- php: 7.0
- php: 7.0
env: SYMFONY_VERSION=2.8.*
- php: 7.0
env: SYMFONY_VERSION=3.0.*
- php: 7.0
env: SYMFONY_VERSION=3.1.*
- php: 7.1

before_install: composer selfupdate

install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; composer update symfony/*; fi;
- if [ "$SYMFONY_VERSION" = "" ]; then composer install; fi;

before_script: mkdir -p build/logs

script: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script: vendor/bin/coveralls -v
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"symfony/framework-bundle": "^2.4 | ^3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8"
"phpunit/phpunit": "^4.8",
"satooshi/php-coveralls": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 15eaf18

Please sign in to comment.