added travis ci settings

This commit is contained in:
Nicolas Constant 2019-04-05 00:17:04 -04:00
parent 9bbc36aeab
commit 3194c39649
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 46 additions and 0 deletions

46
.travis.yml Normal file
View File

@ -0,0 +1,46 @@
sudo: required
dist: trusty
language: c
matrix:
include:
- os: osx
- os: linux
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
node_js:
- 10.9.0
cache:
directories:
- node_modules
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- icnsutils
- graphicsmagick
- libgnome-keyring-dev
- xz-utils
- xorriso
- xvfb
install:
- nvm install 6
- npm install electron-builder@next
- npm install
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- sleep 3
script:
- npm run dist