-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled Windows build in Travis config
- Loading branch information
Simon Hofmann
committed
Sep 19, 2019
1 parent
72f8598
commit a24e27e
Showing
1 changed file
with
25 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,30 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- "11" | ||
- "12" | ||
cache: npm | ||
|
||
os: | ||
- linux | ||
- osx | ||
matrix: | ||
include: | ||
- os: linux | ||
dist: bionic | ||
node_js: "lts/dubnium" | ||
- os: osx | ||
osx_image: xcode11 | ||
node_js: "lts/dubnium" | ||
- os: windows | ||
node_js: "lts/dubnium" | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
git: | ||
depth: 5 | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- libx11-dev | ||
- zlib1g-dev | ||
- libpng12-dev | ||
- libxtst-dev | ||
- g++-4.8 | ||
- gcc-4.8 | ||
|
||
before_install: | ||
# print versions | ||
- node --version | ||
- npm --version | ||
|
||
# use g++-4.8 on Linux | ||
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi | ||
|
||
# before_script: | ||
# Start xvfb | ||
# - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export DISPLAY=:99.0; fi | ||
# - if [[ $TRAVIS_OS_NAME == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi | ||
|
||
install: | ||
- npm install | ||
install: true | ||
|
||
script: | ||
- npm run build:release | ||
|
||
# after_success: | ||
# - if [[ $TRAVIS_TAG != "" ]]; then npm run prebuild -- -u $GITHUB_TOKEN; fi | ||
- npm run patch && npm i | ||
- if [[ $TRAVIS_OS_NAME = "windows" ]]; then npm run build:release:win; else npm run build:release; fi | ||
- npm test | ||
|
||
before_deploy: | ||
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null | ||
|
||
deploy: | ||
- provider: script | ||
skip_cleanup: true | ||
script: npm publish --access public | ||
on: | ||
tags: true |