This repository has been archived by the owner on Apr 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,959 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
checks: | ||
php: | ||
code_rating: true | ||
duplication: false | ||
|
||
tools: | ||
external_code_coverage: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints | ||
language: php | ||
|
||
# list any PHP version you want to test against | ||
php: | ||
# using major version aliases | ||
|
||
# aliased to a recent 5.4.x version | ||
- 5.4 | ||
# aliased to a recent 5.5.x version | ||
- 5.5 | ||
# aliased to a recent 5.6.x version | ||
- 5.6 | ||
# aliased to a recent hhvm version | ||
- hhvm | ||
|
||
# optionally set up exclutions and allowed failures in the matrix | ||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
|
||
# execute any number of scripts before the test run, custom env's are available as variables | ||
before_script: | ||
- curl -sS https://codeload.github.com/pixelandtonic/Craft-Release/zip/master > craft.zip | ||
- unzip craft.zip | ||
- rm craft.zip | ||
- mv Craft-Release-master craft | ||
- mkdir craft/config | ||
- echo "<?php return array('user' => 'test');" > craft/config/db.php | ||
- mkdir craft/storage | ||
- mkdir -p craft/plugins/auditlog | ||
- for item in *; do if [[ ! "$item" == "craft" ]]; then mv $item craft/plugins/auditlog; fi; done | ||
- cd craft/app | ||
- composer require mockery/mockery | ||
- cd ../.. | ||
|
||
# execute tests | ||
script: phpunit --bootstrap craft/app/tests/bootstrap.php --configuration craft/plugins/auditlog/phpunit.xml.dist --coverage-clover coverage.clover craft/plugins/auditlog/tests | ||
|
||
# upload coverage to scrutinizer | ||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ public function getName() | |
*/ | ||
public function getVersion() | ||
{ | ||
return '0.6.2'; | ||
return '0.7.0'; | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.