2019-07-25 16:36:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
export PATH=/snap/bin:$PATH
|
|
|
|
|
2019-09-18 10:31:54 +00:00
|
|
|
sudo apt update
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2019-07-25 16:36:05 +00:00
|
|
|
sudo snap install --classic snapcraft
|
|
|
|
sudo snap install --classic --beta multipass
|
|
|
|
|
|
|
|
snapcraft --debug
|