File tree 3 files changed +21
-1
lines changed
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 13
13
# #- main
14
14
pull_request :
15
15
branches :
16
- # # - develop
16
+ - develop
17
17
- master
18
18
# #- main
19
19
Original file line number Diff line number Diff line change @@ -115,6 +115,17 @@ install_db() {
115
115
mysqladmin create $DB_NAME --user=" $DB_USER " --password=" $DB_PASS " $EXTRA
116
116
}
117
117
118
+ install_gu () {
119
+ if [ -d " ${WP_CORE_DIR} wp-content/plugins/git-updater" ]; then
120
+ return ;
121
+ fi
122
+
123
+ local LATEST_GU_ZIP=$( curl -s https://api.github.com/repos/afragen/git-updater/releases/latest | grep browser_download_url | cut -d ' "' -f 4)
124
+ curl -L $LATEST_GU_ZIP > ${WP_CORE_DIR} wp-content/plugins/git-updater.zip
125
+ unzip -q ${WP_CORE_DIR} wp-content/plugins/git-updater.zip -d ${WP_CORE_DIR} wp-content/plugins
126
+ }
127
+
118
128
install_wp
119
129
install_test_suite
120
130
install_db
131
+ install_gu
Original file line number Diff line number Diff line change 20
20
// Give access to tests_add_filter() function.
21
21
require_once $ _tests_dir . '/includes/functions.php ' ;
22
22
23
+ /**
24
+ * Manually load dependencies.
25
+ */
26
+ function _manually_load_dependencies () {
27
+ echo 'Loading Git Updater... ' . PHP_EOL ;
28
+ require WP_PLUGIN_DIR . '/git-updater/git-updater.php ' ;
29
+ }
30
+ tests_add_filter ( 'muplugins_loaded ' , '_manually_load_dependencies ' );
31
+
23
32
/**
24
33
* Manually load the plugin being tested.
25
34
*/
You can’t perform that action at this time.
0 commit comments