OSDN Git Service

Use `wp core download` in Travis tests too.
authorscribu <mail@scribu.net>
Mon, 29 Apr 2013 15:58:33 +0000 (18:58 +0300)
committerscribu <mail@scribu.net>
Mon, 29 Apr 2013 15:58:33 +0000 (18:58 +0300)
.travis.yml

index e470d86..48687d0 100644 (file)
@@ -17,10 +17,7 @@ before_script:
     # install dependencies
     - composer install --dev --no-interaction --prefer-source
     # set up WP install
-    - WP_CORE_DIR=/tmp/wp-cli-test-core-download-cache/
-    - mkdir -p $WP_CORE_DIR
-    - wget -nv -O /tmp/wordpress.tar.gz http://wordpress.org/wordpress-$WP_VERSION.tar.gz
-    - tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
+    - bin/wp core download --version=$WP_VERSION --path=/tmp/wp-cli-test-core-download-cache/
     # set up database
     - mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
     - mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot