diff --git a/.travis.yml b/.travis.yml index a332008106b..809086ff8f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/unit-tests/bin/phpunit.sh b/unit-tests/bin/phpunit.sh index bbcf6b6d7f8..773d188c61a 100755 --- a/unit-tests/bin/phpunit.sh +++ b/unit-tests/bin/phpunit.sh @@ -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 \ No newline at end of file +"$TRAVIS_BUILD_DIR"/vendor/bin/phpunit --version +"$TRAVIS_BUILD_DIR"/vendor/bin/phpunit -c phpunit.xml $@ \ No newline at end of file