Skip to content

Commit

Permalink
💧 DRI - master:
Browse files Browse the repository at this point in the history
  • Loading branch information
brandoncamenisch committed Dec 20, 2019
1 parent 2c8d8ed commit 8c13357
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions build-me-vvv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,28 @@ 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;;
no ) break;;
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
Expand Down

0 comments on commit 8c13357

Please sign in to comment.