Skip to content

Commit

Permalink
Merge pull request #36 from OpenBuildings/tests-upgrade
Browse files Browse the repository at this point in the history
Update tests and dependencies
  • Loading branch information
hkdobrev authored Aug 16, 2016
2 parents c2907d3 + 67c990c commit cd1c249
Show file tree
Hide file tree
Showing 8 changed files with 1,069 additions and 95 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.DS_Store

/vendor/
/build/
/build/

# Put local modifications to the PHPUnit configuration in this file
/phpunit.xml
35 changes: 25 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,50 @@
language: php

sudo: false

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

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

matrix:
fast_finish: true
exclude:
- php: hhvm
env: DEPS=lowest

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

branches:
only:
- master
- /\d+\.x/
- /\d+\.\d+\.x/

notifications:
email: false
slack:
secure: jihdAhibtEKmK6HNzM5QAkLNYZZ6MAk/c2PTauUjht3FWTvj/9hqSrfeJ4WX2ECfhNfgYEtMVd34EULFqlyWOOury2+FVkxSfN9SLt92EhvCwIMS5ITONOASSm13DtRJUTA+ctj/ndeQq1Iwox+LcT4o6Z8ncSekqD6RQOPgAA8=

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

install:
- composer install --no-interaction

before_script:
- mkdir -p build/logs
- if [ "$DEPS" = "normal" ]; then composer install --no-interaction; fi;
- if [ "$DEPS" = "highest" ]; then composer update --no-interaction; fi;
- if [ "$DEPS" = "lowest" ]; then composer update --no-interaction --prefer-lowest --prefer-stable; fi;

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

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
13 changes: 11 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,26 @@
],
"require" : {
"php": ">=5.3.2",
"lib-curl": "*"
"lib-curl": "*",
"swiftmailer/swiftmailer": "^5.0"
},
"require-dev" : {
"swiftmailer/swiftmailer": "~5.0"
"phpunit/phpunit": ">=4.0,<6.0"
},
"autoload": {
"psr-4": {"Openbuildings\\Postmark\\": "src/"}
},
"autoload-dev": {
"psr-4": {"Openbuildings\\Postmark\\Test\\": "tests/src/"}
},
"suggest": {
"openbuildings/swiftmailer-css-inliner": "Inline the CSS of your HTML emails",
"openbuildings/swiftmailer-filter": "Whitelist or blacklist domains or emails from To, Cc and Bcc",
"openbuildings/swiftmailer-google-campaign": "Append to all email links Google UTM campaign parameters"
},
"config": {
"platform": {
"php": "5.4"
}
}
}
Loading

0 comments on commit cd1c249

Please sign in to comment.