mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-18 06:28:40 -09:00
make travis release
This commit is contained in:
parent
91991a2e38
commit
945c1e44d5
2 changed files with 29 additions and 25 deletions
51
.travis.yml
51
.travis.yml
|
|
@ -1,39 +1,42 @@
|
||||||
sudo: required
|
osx_image: xcode7.3
|
||||||
|
|
||||||
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
language: node_js
|
language: c
|
||||||
|
|
||||||
node_js:
|
matrix:
|
||||||
- 6
|
include:
|
||||||
- 5
|
- os: osx
|
||||||
- 4
|
- os: linux
|
||||||
|
env: CC=clang CXX=clang++ npm_config_clang=1
|
||||||
|
compiler: clang
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
- app/node_modules
|
||||||
|
- $HOME/.electron
|
||||||
|
- $HOME/.cache
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
packages:
|
||||||
- g++-4.8
|
- libgnome-keyring-dev
|
||||||
packages:
|
- icnsutils
|
||||||
- xvfb
|
|
||||||
|
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
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- export CXX="g++-4.8"
|
- nvm install 6
|
||||||
- npm install
|
- npm install electron-builder@next # force install next version to test electron-builder
|
||||||
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
|
- npm install
|
||||||
- export DISPLAY=':99.0'
|
- npm prune
|
||||||
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
|
||||||
- sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils xorriso
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- export DISPLAY=:99.0
|
|
||||||
- sh -e /etc/init.d/xvfb start &
|
|
||||||
- sleep 3
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run release
|
||||||
|
|
||||||
|
branches:
|
||||||
|
except:
|
||||||
|
- "/^v\\d+\\.\\d+\\.\\d+$/"
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@
|
||||||
"prepush": "npm test",
|
"prepush": "npm test",
|
||||||
"postinstall": "install-app-deps",
|
"postinstall": "install-app-deps",
|
||||||
"pack": "npm run build && build --dir",
|
"pack": "npm run build && build --dir",
|
||||||
"dist": "npm run build && build"
|
"dist": "npm run build && build",
|
||||||
|
"release": "npm run build && build --publish=onTagOrDraft"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue