OSDN Git Service

give shorter names to ci scripts
authorscribu <mail@scribu.net>
Wed, 14 Aug 2013 21:03:38 +0000 (00:03 +0300)
committerscribu <mail@scribu.net>
Wed, 14 Aug 2013 21:14:31 +0000 (00:14 +0300)
.travis.yml
bin/ci/build.sh [moved from bin/ci/run_build.sh with 79% similarity]
bin/ci/prepare.sh [moved from bin/ci/install_dependencies.sh with 100% similarity]

index 7a642a4..e05a986 100644 (file)
@@ -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:
similarity index 79%
rename from bin/ci/run_build.sh
rename to bin/ci/build.sh
index f3cd75e..1dd2c52 100755 (executable)
@@ -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