Skip to content

Commit

Permalink
>> External travis script, misc test cli changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaselkowski committed Dec 16, 2015
1 parent 83837b3 commit baeee52
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .scrunitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ before_commands:
- 'composer install --no-dev --prefer-dist'
tools:
external_code_coverage:
timeout: 1200
timeout: 12000
runs: 2
php_mess_detector: true
php_code_sniffer: true
Expand Down
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@ env:
install:
- composer install --dev --prefer-dist
- composer update maslosoft/addendumtest
after_script:
- wget --no-check-certificate https://scrutinizer-ci.com/ocular.phar
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then php ocular.phar code-coverage:upload --repository=g/Maslosoft/Addendum --revision=`git rev-parse HEAD` --format=php-clover ./tests/_output/coverage.clover; fi;'
script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ] || [ "$TRAVIS_PHP_VERSION" == "nightly" ]; then vendor/bin/codecept run unit; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then vendor/bin/codecept run unit --coverage --html --coverage-html=. --coverage-xml=./coverage.clover; fi;'
- run-travis
16 changes: 16 additions & 0 deletions generated/signals-definition.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php // Auto generated, any changes will be lost
return array (
'slots' =>
array (
),
'signals' =>
array (
'\\Maslosoft\\Addendum\\Signals\\NamespacesSignal' =>
array (
'\\Maslosoft\\AddendumTest\\Annotations\\SignaledNs\\SlotForNamespace' =>
array (
0 => 'reactOn()',
),
),
),
);
1 change: 1 addition & 0 deletions run-test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
rm -rf runtime/addendum/*
vendor/bin/codecept run unit "$@"Test.php
1 change: 1 addition & 0 deletions run-tests
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env sh
rm -rf runtime/addendum/*
vendor/bin/codecept run unit --debug
1 change: 1 addition & 0 deletions run-tests-coverage
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env sh
rm -rf runtime/addendum/*
vendor/bin/codecept run unit --coverage --html --coverage-html=. --coverage-xml=./coverage.clover
12 changes: 12 additions & 0 deletions run-travis
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
if [ "$TRAVIS_PHP_VERSION" == "hhvm" ] || [ "$TRAVIS_PHP_VERSION" == "nightly" ]; then
vendor/bin/codecept run unit
fi;
if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then
vendor/bin/codecept run unit --coverage --html --coverage-html=. --coverage-xml=./coverage.clover
fi;
wget --no-check-certificate https://scrutinizer-ci.com/ocular.phar
if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then
php ocular.phar code-coverage:upload --revision=`git rev-parse HEAD` --format=php-clover ./tests/_output/coverage.clover
fi;
rm ocular.phar

0 comments on commit baeee52

Please sign in to comment.