From 8c133571bbf5f94f85ca56a7365a830a6c652607 Mon Sep 17 00:00:00 2001 From: brandoncamenisch Date: Thu, 19 Dec 2019 18:15:30 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A7=20DRI=20-=20master:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-me-vvv.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/build-me-vvv.sh b/build-me-vvv.sh index 79de2f4..bea25a2 100755 --- a/build-me-vvv.sh +++ b/build-me-vvv.sh @@ -41,7 +41,6 @@ git clone https://github.com/automattic/vip-wpcom-mu-plugins.git www/pmc/vip-wpc git -C www/pmc/vip-wpcom-mu-plugins submodule init git -C www/pmc/vip-wpcom-mu-plugins submodule update -# Start the machine echo "Start the vagrant machine i.e. vagrant up --provision?" select yn in "yes" "no"; do case $yn in yes ) vagrant up --provision && break;; @@ -49,9 +48,21 @@ select yn in "yes" "no"; do case $yn in esac done +echo "Build amp for go?" +select yn in "yes" "no"; do case $yn in + yes ) vagrant ssh -- -t 'cd /srv/www/pmc/pmc-vip-go-plugins/amp && composer install && npm install && npm run build' && break;; + no ) break;; + esac +done + +echo "Build amp for wpcom?" +select yn in "yes" "no"; do case $yn in + yes ) vagrant ssh -- -t 'cd /srv/www/pmc/vip-wpcom-mu-plugins/amp-wp && composer install && npm install && npm run build' && break;; + no ) break;; + esac +done + vagrant ssh -- -t 'if ! grep PMC_PHPUNIT_BOOTSTRAP ~/.bashrc; then echo export PMC_PHPUNIT_BOOTSTRAP="/srv/www/pmc/public_html/wp-content/plugins/pmc-plugins/pmc-unit-test/bootstrap.php" >> ~/.bashrc; fi' -vagrant ssh -- -t 'cd /srv/www/pmc/pmc-vip-go-plugins/amp && composer install && npm install && npm run build' -vagrant ssh -- -t 'cd /srv/www/pmc/vip-wpcom-mu-plugins/amp-wp && composer install && npm install && npm run build' for i in $(ls -d www/pmc-* | xargs -n1 basename) do