Revert "Use JSON for travis config"

This reverts commit 629c232ef5.
This commit is contained in:
Guillermo Rauch 2016-10-05 10:51:15 -07:00
parent a3fe1d9a1c
commit 7d1da3c1d9
2 changed files with 48 additions and 8 deletions

View file

@ -1,7 +1,47 @@
{ osx_image: xcode7.3
"os": "osx",
"language": "node_js", sudo: required
"sudo": false, dist: trusty
"node_js": "node",
"script": "npm run release" language: c
}
matrix:
include:
- os: osx
- os: linux
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
cache:
directories:
- node_modules
- app/node_modules
- $HOME/.electron
- $HOME/.cache
addons:
apt:
packages:
- libgnome-keyring-dev
- icnsutils
- graphicsmagick
- xz-utils
- rpm
- bsdtar
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
install:
- nvm install 6
- npm install electron-builder@next # force install next version to test electron-builder
- npm install
- npm prune
script:
- npm run release
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"

View file

@ -109,7 +109,7 @@
"start": "concurrently --kill-others --raw \"npm run dev\" \"electron app\"", "start": "concurrently --kill-others --raw \"npm run dev\" \"electron app\"",
"dev": "webpack -w", "dev": "webpack -w",
"build": "NODE_ENV=production webpack", "build": "NODE_ENV=production webpack",
"test": "npm run pack && xo && ava", "test": "npm run dist && xo && ava",
"prepublish": "npm test", "prepublish": "npm test",
"prepush": "npm test", "prepush": "npm test",
"postinstall": "install-app-deps", "postinstall": "install-app-deps",