Skip to content

Commit

Permalink
Merge pull request #1 from clippings/tests-upgrade
Browse files Browse the repository at this point in the history
Upgrade tests infrastructure
  • Loading branch information
hkdobrev authored Sep 18, 2016
2 parents 9923bfc + 953b5f0 commit 739d297
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 739d297

Please sign in to comment.