OSDN Git Service

switch to develop.svn and only download the test utilities
authorscribu <mail@scribu.net>
Fri, 30 Aug 2013 15:13:53 +0000 (18:13 +0300)
committerscribu <mail@scribu.net>
Sun, 24 Nov 2013 17:35:08 +0000 (19:35 +0200)
templates/install-wp-tests.sh

index 2320e61..646b8c3 100644 (file)
@@ -26,9 +26,6 @@ fi
 wget -nv -O /tmp/wordpress.tar.gz http://wordpress.org/${ARCHIVE_NAME}.tar.gz
 tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
 
-# set up testing suite
-svn co --ignore-externals --quiet http://unit-tests.svn.wordpress.org/trunk/ $WP_TESTS_DIR
-
 # portable in-place argument for both GNU sed and Mac OSX sed
 if [[ $(uname -s) == 'Darwin' ]]; then
   ioption='-i ""'
@@ -36,10 +33,13 @@ else
   ioption='-i'
 fi
 
-# generate testing config file
+# set up testing suite
+mkdir -p $WP_TESTS_DIR
 cd $WP_TESTS_DIR
-cp wp-tests-config-sample.php wp-tests-config.php
-sed $ioption "s:dirname( __FILE__ ) . '/wordpress/':'$WP_CORE_DIR':" wp-tests-config.php
+svn co --quiet http://develop.svn.wordpress.org/trunk/tests/phpunit/includes/
+
+wget -nv -O wp-tests-config.php http://develop.svn.wordpress.org/trunk/wp-tests-config-sample.php
+sed -i "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR':" wp-tests-config.php
 sed $ioption "s/yourdbnamehere/$DB_NAME/" wp-tests-config.php
 sed $ioption "s/yourusernamehere/$DB_USER/" wp-tests-config.php
 sed $ioption "s/yourpasswordhere/$DB_PASS/" wp-tests-config.php