2019-07-17 20:11:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
export PATH=/snap/bin:$PATH
|
|
|
|
|
|
|
|
sudo apt update
|
|
|
|
|
2019-09-03 15:40:58 +00:00
|
|
|
# Install the X virtual framebuffer, which is required for selenium
|
|
|
|
# tests of the horizon dashboard.
|
|
|
|
sudo apt install -y xvfb npm libfontconfig1
|
|
|
|
sudo npm install -g phantomjs-prebuilt
|
|
|
|
# Verify that PhantomJS, our selenium web driver, works.
|
|
|
|
phantomjs -v
|
|
|
|
|
|
|
|
# Setup snapd and snapcraft
|
|
|
|
sudo apt install -y snapd
|
2019-07-17 20:11:28 +00:00
|
|
|
sudo snap install --classic snapcraft
|
|
|
|
sudo snap install --classic lxd
|
|
|
|
sudo lxd init --auto
|
|
|
|
|
2019-09-03 15:40:58 +00:00
|
|
|
# Build our snap!
|
2019-07-17 20:11:28 +00:00
|
|
|
sudo snapcraft --use-lxd
|