From 7066e174dc66fda00a1b86b0484f8df3ddef9e27 Mon Sep 17 00:00:00 2001 From: Stefan Ivic Date: Sun, 19 Mar 2017 00:08:32 +0100 Subject: [PATCH] fix : install a dep for snaps (#1617) * fix : install the missing package Fix for the failing builds on Travis due to EONENT spawn error. * fix : update the name to the correct package * Revert "Remove `snap` target" This reverts commit a8ce50508a5e8828f01877f8994761f7c8539677. * fix : add a ppa and install snapcraft * fix : auto continue ppa adding * update : install snapcraft only on linux --- .travis.yml | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1ca5f3d6..dec0e30e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,12 +21,14 @@ addons: - xz-utils - rpm - bsdtar + - snapd before_install: - mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v1.2.1/git-lfs-$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-1.2.1.tar.gz | tar -xz -C /tmp/git-lfs --strip-components 1 && /tmp/git-lfs/git-lfs pull - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install yarn; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository ppa:snappy-dev/tools-proposed -y && sudo apt update && sudo apt install snapcraft; fi install: - yarn diff --git a/package.json b/package.json index 1e7f31bf..c12b835f 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,8 @@ "target": [ "deb", "AppImage", - "rpm" + "rpm", + "snap" ] }, "win": {