forked from eelcocramer/node-bluetooth-serial-port
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 800 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
language: cpp # node_js is not supported yet on osx
compiler: gcc
sudo: false
os:
- linux
- osx
env:
matrix:
- export NODE_VERSION="6"
- export NODE_VERSION="7"
- export NODE_VERSION="8"
- export NODE_VERSION="9"
- export NODE_VERSION="10"
matrix:
fast-finish: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libbluetooth-dev
before_install:
- git clone https://github.com/creationix/nvm.git ./.nvm
- source ./.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- npm config set python `which python`
- gcc --version
- g++ --version
- npm --version
- node --version
script:
- npm install
- node ./test/index.js
cache:
directories:
- $HOME/.node-gyp
- $HOME/.npm
- node_modules