Skip to content

Commit

Permalink
Upgrade tests infrastructure
Browse files Browse the repository at this point in the history
- [x] Test on more PHP versions
- [x] Test on highest and lowest dependenecies
- [x] Test with PHPUnit as a project-dependency
  • Loading branch information
hkdobrev committed Sep 18, 2016
1 parent 9923bfc commit 953b5f0
Show file tree
Hide file tree
Showing 5 changed files with 878 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/vendor/
/build/
# Ignore local configuration
/phpunit.xml
23 changes: 19 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,38 @@ php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

env:
- DEPS=normal
- DEPS=highest
- DEPS=lowest

matrix:
fast_finish: true

branches:
only:
- master

cache:
directories:
- $HOME/.composer/cache

before_install:
- composer selfupdate
before_install: travis_retry composer selfupdate --preview

install:
- composer install
- if [ "$DEPS" = "normal" ]; then travis_retry composer install --no-interaction; fi;
- if [ "$DEPS" = "highest" ]; then travis_retry composer update --no-interaction; fi;
- if [ "$DEPS" = "lowest" ]; then travis_retry composer update --no-interaction --prefer-lowest --prefer-stable; fi;

before_script:
- mkdir -p build/logs

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

after_script:
- test -e build/logs/clover.xml && wget https://scrutinizer-ci.com/ocular.phar
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
}
],
"require" : {
"php": ">=5.4"
"php": ">=5.4",
"swiftmailer/swiftmailer": "^5.0"
},
"require-dev" : {
"swiftmailer/swiftmailer": "^5.0"
"phpunit/phpunit": "^4.0, <4.5"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 953b5f0

Please sign in to comment.