I’ve installed newer
snap on Xenial (Travis) and now I am unable to build snaps.
Launching a VM.
launch failed: multipass socket access denied
Please check that you have read/write permissions to '/run/multipass_socket'
An error occurred when trying to launch the instance with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
The command "snapcraft" exited with 2.
Hi @abitrolly, unfortunately you can’t use Multipass on travis at the moment, since it doesn’t allow VMs to run. Newest snapcraft unfortunately also doesn’t have LXD support (it’s in the works), so to use
base: core18 you’ll need to do a bit of manual setup.
I’ve just gone through the same for Multipass itself, have a look at my PR and you should be able to get something going.
I could build snaps on TravisCI with custom Docker image and without LXD. https://hub.docker.com/r/yakshaveinc/snapcraft