-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
52 lines (42 loc) · 927 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
sudo: false
language: node_js
cache: npm
matrix:
include:
- os: linux
node_js: "10"
- os: osx
osx_image: xcode11
node_js: "10"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- libx11-dev
- zlib1g-dev
- libpng-dev
- libxtst-dev
- g++-4.8
- gcc-4.8
services:
- xvfb
before_install:
- node --version
- npm --version
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8 && $CXX --version; fi
install: true
script:
- 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
node_js: '12'