You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.2 KiB

7 years ago
sudo: false
language: node_js
env:
global:
- DEBUG=electron-builder
os:
- linux
- osx
7 years ago
node_js:
- node
- lts/*
7 years ago
cache:
apt: true
7 years ago
yarn: true
directories:
- node_modules
- flow-typed
7 years ago
- app/node_modules
addons:
apt:
packages:
- xvfb
7 years ago
install:
- yarn
- |
if [ $TRAVIS_OS_NAME == "linux" ]; then
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
fi
7 years ago
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- sleep 3
script:
- yarn lint-ci || travis_terminate 1
- yarn build || travis_terminate 1
- yarn test-ci || travis_terminate 1
- yarn coveralls || travis_terminate 1
jobs:
include:
- stage: deploy
name: Deploy to Github
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn release
on:
repo: LN-Zap/zap-desktop
branch: master
- os: osx
name: Deploy to Github
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn release
on:
repo: LN-Zap/zap-desktop
branch: master