Config
This commit is contained in:
parent
52dc671ea8
commit
652e622aa8
|
@ -16,9 +16,10 @@ matrix:
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- phpenv config-rm xdebug.ini
|
- phpenv config-rm xdebug.ini
|
||||||
|
- composer install
|
||||||
|
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||||
- 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
|
|
@ -10,7 +10,8 @@
|
||||||
"composer/installers" : "~1.0"
|
"composer/installers" : "~1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "6.5.14"
|
"phpunit/phpunit": "6.5.14",
|
||||||
|
"woocommerce/woocommerce-sniffs": "0.0.6"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": ["src"]
|
"classmap": ["src"]
|
||||||
|
|
|
@ -6,6 +6,6 @@ if [[ ${RUN_PHPCS} == 1 ]]; then
|
||||||
|
|
||||||
if [ "$CHANGED_FILES" != "" ]; then
|
if [ "$CHANGED_FILES" != "" ]; then
|
||||||
echo "Running Code Sniffer."
|
echo "Running Code Sniffer."
|
||||||
phpcs --ignore=$IGNORE --encoding=utf-8 -s -n -p $CHANGED_FILES
|
./vendor/bin/phpcs --ignore=$IGNORE --encoding=utf-8 -s -n -p $CHANGED_FILES
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
"$TRAVIS_BUILD_DIR"/vendor/bin/phpunit --version
|
$HOME/.composer/vendor/bin/phpunit -c phpunit.xml $@
|
||||||
"$TRAVIS_BUILD_DIR"/vendor/bin/phpunit -c phpunit.xml $@
|
|
Loading…
Reference in New Issue