forked from ampproject/amp-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dev-lib
30 lines (26 loc) · 927 Bytes
/
.dev-lib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
DEFAULT_BASE_BRANCH=develop
ASSETS_DIR=wp-assets
PROJECT_SLUG=amp
README_MD_TITLE="AMP Plugin for WordPress"
DEV_LIB_SKIP="$DEV_LIB_SKIP,jshint"
CHECK_SCOPE=all
function after_wp_install {
if [[ "$WP_VERSION" != "4.9" ]]; then
echo -n "Installing Gutenberg 7.1.0..."
gutenberg_plugin_svn_url=https://plugins.svn.wordpress.org/gutenberg/tags/7.1.0/
svn export -q "$gutenberg_plugin_svn_url" "$WP_CORE_DIR/src/wp-content/plugins/gutenberg"
echo "done"
fi
if [[ ! -z $INSTALL_PWA_PLUGIN ]]; then
echo -n "Installing PWA 0.2-alpha2..."
wget -O "$WP_CORE_DIR/src/wp-content/plugins/pwa.zip" https://github.com/xwp/pwa-wp/releases/download/0.2-alpha2/pwa.zip
unzip -d "$WP_CORE_DIR/src/wp-content/plugins/pwa/" "$WP_CORE_DIR/src/wp-content/plugins/pwa.zip"
echo "done"
fi
}
function coverage_clover {
if [[ ! -z $RUN_PHPUNIT_COVERAGE ]]; then
echo --coverage-clover build/logs/clover.xml
fi
}