Move composer install

This commit is contained in:
Mike Jolley 2019-06-11 11:16:23 +01:00
parent 561e44432a
commit 129ea30305
2 changed files with 1 additions and 1 deletions

View File

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

View File

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