Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after_success script added #32

Merged
merged 2 commits into from
Apr 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -75,17 +76,23 @@ 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
else
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