Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a24e27e

Browse files
author
Simon Hofmann
committedSep 19, 2019
Enabled Windows build in Travis config
1 parent 72f8598 commit a24e27e

File tree

1 file changed

+25
-46
lines changed

1 file changed

+25
-46
lines changed
 

‎.travis.yml

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,30 @@
1-
sudo: false
21
language: node_js
3-
node_js:
4-
- "10"
5-
- "11"
6-
- "12"
2+
cache: npm
73

8-
os:
9-
- linux
10-
- osx
4+
matrix:
5+
include:
6+
- os: linux
7+
dist: bionic
8+
node_js: "lts/dubnium"
9+
- os: osx
10+
osx_image: xcode11
11+
node_js: "lts/dubnium"
12+
- os: windows
13+
node_js: "lts/dubnium"
1114

12-
cache:
13-
directories:
14-
- node_modules
15-
16-
git:
17-
depth: 5
18-
19-
addons:
20-
apt:
21-
sources:
22-
- ubuntu-toolchain-r-test
23-
packages:
24-
- libx11-dev
25-
- zlib1g-dev
26-
- libpng12-dev
27-
- libxtst-dev
28-
- g++-4.8
29-
- gcc-4.8
30-
31-
before_install:
32-
# print versions
33-
- node --version
34-
- npm --version
35-
36-
# use g++-4.8 on Linux
37-
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
38-
39-
# before_script:
40-
# Start xvfb
41-
# - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export DISPLAY=:99.0; fi
42-
# - if [[ $TRAVIS_OS_NAME == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
43-
44-
install:
45-
- npm install
15+
install: true
4616

4717
script:
48-
- npm run build:release
49-
50-
# after_success:
51-
# - if [[ $TRAVIS_TAG != "" ]]; then npm run prebuild -- -u $GITHUB_TOKEN; fi
18+
- npm run patch && npm i
19+
- if [[ $TRAVIS_OS_NAME = "windows" ]]; then npm run build:release:win; else npm run build:release; fi
20+
- npm test
21+
22+
before_deploy:
23+
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
24+
25+
deploy:
26+
- provider: script
27+
skip_cleanup: true
28+
script: npm publish --access public
29+
on:
30+
tags: true

0 commit comments

Comments
 (0)
Please sign in to comment.