- php: 5.5
env: WP_VERSION=3.4.2
-before_script: ./bin/ci/install_dependencies.sh
+before_script: ./bin/ci/prepare.sh
-script: ./bin/ci/run_build.sh
+script: ./bin/ci/build.sh
notifications:
email:
set -ex
+# Run the unit tests
phpunit
-# Run the functional tests against the Phar file
-
+# Create the Phar file
WP_CLI_BIN_DIR=/tmp/wp-cli-phar
-
mkdir -p $WP_CLI_BIN_DIR
php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --quiet
mv wp-cli.phar $WP_CLI_BIN_DIR/wp
chmod +x $WP_CLI_BIN_DIR/wp
+# Run the functional tests
WP_CLI_BIN_DIR=$WP_CLI_BIN_DIR php behat.phar --format progress