Espruino/scripts/vagrant_provision.sh
2018-01-21 15:53:19 +01:00

19 lines
509 B
Bash
Executable File

#!/bin/bash
#
# This script is run by Vagrant when a new machine is provisioned.
#
sudo apt-get -qq -y install git
# move to 'Espruino' directory
cd `dirname $0`/..
# Attempt to provision for all required platforms
source scripts/provision.sh ESP8266_BOARD
source scripts/provision.sh ESP32
source scripts/provision.sh PUCKJS
# apply setup config to add compiler to PATH
# from stackoverflow i.e http://stackoverflow.com/a/28279205
echo "source /vagrant/scripts/vagrant_setup.sh" >> /home/vagrant/.bashrc