Files
neovim/ci/snap/script.sh
Carlos Hernandez 65b2fce787 snap: don't run snapcraft under sudo
Snapcraft 4.0 complains about running LXD builds under sudo.  So instead
add the CI user to the "lxd" group and use sg to switch to that
membership.

Resolves: #12712
2020-08-30 17:13:41 +00:00

9 lines
107 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -o pipefail
mkdir -p "$TRAVIS_BUILD_DIR/snaps-cache"
sg lxd -c snapcraft