Minor fixes for things noticed when running tests locally.
Was using a directory other than /tmp for temp dir and it was failing, this was the changes I had to make.
This commit is contained in:
parent
945ff7958f
commit
dd67ee2e28
|
@ -39,9 +39,9 @@ elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
|
|||
WP_TESTS_TAG="trunk"
|
||||
else
|
||||
# http serves a single offer, whereas https serves multiple. we only want one
|
||||
download http://api.wordpress.org/core/version-check/1.7/ /tmp/wp-latest.json
|
||||
grep '[0-9]+\.[0-9]+(\.[0-9]+)?' /tmp/wp-latest.json
|
||||
LATEST_VERSION=$(grep -o '"version":"[^"]*' /tmp/wp-latest.json | sed 's/"version":"//')
|
||||
download http://api.wordpress.org/core/version-check/1.7/ $TMPDIR/wp-latest.json
|
||||
grep '[0-9]+\.[0-9]+(\.[0-9]+)?' $TMPDIR/wp-latest.json
|
||||
LATEST_VERSION=$(grep -o '"version":"[^"]*' $TMPDIR/wp-latest.json | sed 's/"version":"//')
|
||||
if [[ -z "$LATEST_VERSION" ]]; then
|
||||
echo "Latest WordPress version could not be found"
|
||||
exit 1
|
||||
|
|
|
@ -5,9 +5,9 @@ if [[ ${RUN_PHPCS} == 1 ]] || [[ ${RUN_E2E} == 1 ]]; then
|
|||
fi
|
||||
|
||||
if [[ ${RUN_CODE_COVERAGE} == 1 ]]; then
|
||||
phpdbg -qrr $HOME/.composer/vendor/bin/phpunit -d memory_limit=-1 -c phpunit.xml --coverage-clover=coverage.clover --exclude-group=timeout
|
||||
phpdbg -qrr $HOME/.composer/vendor/bin/phpunit -d memory_limit=-1 -c phpunit.xml --coverage-clover=coverage.clover --exclude-group=timeout $@
|
||||
elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
|
||||
$HOME/.composer/vendor/bin/phpunit -c phpunit.xml
|
||||
$HOME/.composer/vendor/bin/phpunit -c phpunit.xml $@
|
||||
else
|
||||
phpunit -c phpunit.xml
|
||||
phpunit -c phpunit.xml $@
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue