Skip to content

Commit

Permalink
fix : install a dep for snaps (vercel#1617)
Browse files Browse the repository at this point in the history
* 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 a8ce505.

* fix : add a ppa and install snapcraft

* fix : auto continue ppa adding

* update : install snapcraft only on linux
  • Loading branch information
Stefan Ivic authored and rauchg committed Mar 18, 2017
1 parent b725969 commit 7066e17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"target": [
"deb",
"AppImage",
"rpm"
"rpm",
"snap"
]
},
"win": {
Expand Down

0 comments on commit 7066e17

Please sign in to comment.