Skip to content

Commit

Permalink
Enabled Windows build in Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Hofmann committed Sep 19, 2019
1 parent 72f8598 commit a24e27e
Showing 1 changed file with 25 additions and 46 deletions.
71 changes: 25 additions & 46 deletions .travis.yml
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

0 comments on commit a24e27e

Please sign in to comment.