mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
Merge pull request #32 from kidunot89/bugfix/coveralls.io
after_success script added
This commit is contained in:
+10
-3
@@ -61,6 +61,7 @@ before_script:
|
||||
composer install-wp-tests
|
||||
if [ "$COVERAGE" == "1" ]; then
|
||||
# Install Coveralls
|
||||
mkdir -p build/logs
|
||||
COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require php-coveralls/php-coveralls
|
||||
fi
|
||||
COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-source --no-interaction
|
||||
@@ -75,8 +76,8 @@ before_script:
|
||||
fi
|
||||
|
||||
script:
|
||||
# Execute unit tests with coverage if specified, otherwise without coverage
|
||||
- |
|
||||
# Execute unit tests with coverage if specified, otherwise without coverage
|
||||
- |
|
||||
if [ ! -z "$WP_VERSION" ]; then
|
||||
if [ "$COVERAGE" == "1" ]; then
|
||||
vendor/bin/codecept run wpunit --coverage --coverage-xml
|
||||
@@ -84,8 +85,14 @@ script:
|
||||
vendor/bin/codecept run wpunit
|
||||
fi
|
||||
fi
|
||||
- |
|
||||
- |
|
||||
if [ "$PHPCS" == "1" ]; then
|
||||
vendor/bin/phpcs wp-graphql-woocommerce.php access-functions.php src/*.php --standard=WordPress
|
||||
fi
|
||||
after_success:
|
||||
# Runs Coveralls.io client
|
||||
- |
|
||||
if [ "$COVERAGE" == "1" ]; then
|
||||
travis_retry php vendor/bin/php-coveralls -v
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user