From ec9c530c60c64ce8a37aecea8226564873d00b71 Mon Sep 17 00:00:00 2001 From: scribu Date: Thu, 15 Aug 2013 00:03:38 +0300 Subject: [PATCH] give shorter names to ci scripts --- .travis.yml | 4 ++-- bin/ci/{run_build.sh => build.sh} | 6 +++--- bin/ci/{install_dependencies.sh => prepare.sh} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename bin/ci/{run_build.sh => build.sh} (79%) rename bin/ci/{install_dependencies.sh => prepare.sh} (100%) diff --git a/.travis.yml b/.travis.yml index 7a642a45..e05a986c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,9 @@ matrix: - 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: diff --git a/bin/ci/run_build.sh b/bin/ci/build.sh similarity index 79% rename from bin/ci/run_build.sh rename to bin/ci/build.sh index f3cd75e8..1dd2c52e 100755 --- a/bin/ci/run_build.sh +++ b/bin/ci/build.sh @@ -2,15 +2,15 @@ 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 diff --git a/bin/ci/install_dependencies.sh b/bin/ci/prepare.sh similarity index 100% rename from bin/ci/install_dependencies.sh rename to bin/ci/prepare.sh -- 2.11.0