try travis build dir

This commit is contained in:
Mike Jolley 2019-06-11 11:24:52 +01:00
parent 6d211e17bf
commit 52dc671ea8
2 changed files with 3 additions and 9 deletions

View File

@ -19,5 +19,6 @@ before_script:
- bash unit-tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
script:
- composer install
- bash unit-tests/bin/phpunit.sh
- bash unit-tests/bin/phpcs.sh

View File

@ -1,10 +1,3 @@
#!/usr/bin/env bash
WORKING_DIR="$PWD"
cd "$WP_CORE_DIR/wp-content/plugins/woocommerce-rest-api"
ls
composer install
./vendor/bin/phpunit --version
./vendor/bin/phpunit -c phpunit.xml
TEST_RESULT=$?
cd "$WORKING_DIR"
exit $TEST_RESULT
"$TRAVIS_BUILD_DIR"/vendor/bin/phpunit --version
"$TRAVIS_BUILD_DIR"/vendor/bin/phpunit -c phpunit.xml $@