blockbench/.travis.yml
2017-10-27 10:33:29 +02:00

56 lines
963 B
YAML

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:
- 6
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
deploy:
provider: releases
user: JannisX11
api_key: $GH_TOKEN
file: "/home/travis/build/JannisX11/blockbench/dist/Blockbench_1.9.1_amd64.deb"
skip_cleanup: true
on:
tags: true