diff --git a/.travis.yml b/.travis.yml index 809086ff8f2..a332008106b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,5 @@ 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 5e3d054f19c..c21ff9e0740 100755 --- a/unit-tests/bin/phpunit.sh +++ b/unit-tests/bin/phpunit.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash WORKING_DIR="$PWD" cd "$WP_CORE_DIR/wp-content/plugins/woocommerce-rest-api" +composer install ./vendor/bin/phpunit --version ./vendor/bin/phpunit -c phpunit.xml TEST_RESULT=$?