hyper/.travis.yml
Stefan Ivic 7066e174dc 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 a8ce50508a.

* fix : add a ppa and install snapcraft

* fix : auto continue ppa adding

* update : install snapcraft only on linux
2017-03-18 16:08:32 -07:00

41 lines
1.1 KiB
YAML

sudo: required
dist: trusty
language: node_js
matrix:
include:
- os: osx
node_js: 6
- os: linux
node_js: 6
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
addons:
apt:
packages:
- libgnome-keyring-dev
- icnsutils
- graphicsmagick
- 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
after_success:
- yarn run dist
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"