Sid Gifari File Manager
🏠 Root
/
home
/
genremedia08
/
thepassage.overlookedtracks.com
/
wp-content9
/
plugins
/
buddypress-docs
/
Editing: .travis.yml
# Main Travis CI configuration file for wordpress-plugin tests # https://github.com/benbalter/wordpress-plugin-tests # Tell Travis CI we're using PHP language: php # Versions of PHP to test against php: - 5.6 - 7.0 - 7.1 # Specify versions of WordPress to test against # WP_VERSION = WordPress version number (use "master" for SVN trunk) # WP_MULTISITE = whether to test multisite (use either "0" or "1") # Note: Testing only against BP master for now (ignore old versions because of # changes in the path structure) env: - WP_VERSION=master WP_MULTISITE=0 BP_VERSION=master - WP_VERSION=master WP_MULTISITE=1 BP_VERSION=master # Grab the setup script and execute before_script: - export WP_DEVELOP_DIR=/tmp/wordpress-develop/ - git clone git://develop.git.wordpress.org/trunk/ $WP_DEVELOP_DIR - plugin_slug=$(basename $(pwd)) - plugin_dir=$WP_DEVELOP_DIR/src/wp-content/plugins/$plugin_slug - cd .. - mv $plugin_slug $plugin_dir # set up BuddyPress - buddypress_dir=$WP_DEVELOP_DIR/src/wp-content/plugins/buddypress - mkdir -p $buddypress_dir - wget -nv -O /tmp/buddypress.tar.gz https://github.com/BuddyPress/BuddyPress/tarball/$BP_VERSION - tar --strip-components=1 -zxmf /tmp/buddypress.tar.gz -C $buddypress_dir # set up testing suite - cd $WP_DEVELOP_DIR - cp wp-tests-config-sample.php wp-tests-config.php - sed -i "s:dirname( __FILE__ ) . '/wordpress/':'$WP_CORE_DIR':" wp-tests-config.php - sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php - sed -i "s/yourusernamehere/root/" wp-tests-config.php - sed -i "s/yourpasswordhere//" wp-tests-config.php # set up database - mysql -e 'CREATE DATABASE wordpress_test;' -uroot # prepare for running the tests - cd $plugin_dir - pwd script: phpunit # wordpress-plugin-tests specific config # Tells Travis CI not to run unit tests against the setup branch branches: except: - setup notifications: email: recipients: - boone@gorg.es
Save
Cancel