forked from intel/iotivity-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (81 loc) · 1.96 KB
/
.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
sudo: false
language: cpp
matrix:
fast_finish: true
include:
- env: NODE_VERSION=4.0 TEST_SCRIPT=lint
os: linux
- env: NODE_VERSION=lts/argon TEST_SCRIPT=test
os: linux
addons: &1
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libcurl4-openssl-dev
- uuid-dev
- g++-4.8
- libboost-all-dev
- env: NODE_VERSION=lts/argon TEST_SCRIPT=test
os: osx
osx_image: xcode8.2
- env: NODE_VERSION=lts/boron TEST_SCRIPT=test
os: linux
addons: *1
- env: NODE_VERSION=lts/boron TEST_SCRIPT=test
os: osx
osx_image: xcode8.2
- env: NODE_VERSION=5.5.0 TEST_SCRIPT=test
os: linux
addons: *1
- env: NODE_VERSION=5.5.0 TEST_SCRIPT=test
os: osx
osx_image: xcode8.2
- env: NODE_VERSION=stable TEST_SCRIPT=test
os: linux
addons: *1
- env: NODE_VERSION=stable TEST_SCRIPT=test
os: osx
osx_image: xcode8.2
- env: NODE_VERSION=7 TEST_SCRIPT=test
os: linux
addons: *1
- env: NODE_VERSION=7 TEST_SCRIPT=test
os: osx
osx_image: xcode8.2
- env: NODE_VERSION=stable TEST_SCRIPT=publish-coverage
os: linux
addons: *1
allow_failures:
- env: NODE_VERSION=stable TEST_SCRIPT=publish-coverage
os: linux
addons: *1
install:
- |
if test "x${TRAVIS_OS_NAME}x" = "xlinuxx"; then
export CXX="g++-4.8" CC="gcc-4.8"
fi
- rm -rf ~/.nvm
- wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.7/install.sh |
bash
- source ~/.nvm/nvm.sh
- nvm install "${NODE_VERSION}"
- npm install -g npm@^2.14.2
- |
if test "x${TRAVIS_OS_NAME}x" = "xosxx"; then
brew install scons
fi
- node --version
- npm --version
- npm install -g grunt-cli
- |
if test "x${TEST_SCRIPT}x" = "xtestx" -o "x${TEST_SCRIPT}x" = "xpublish-coveragex"; then
npm install -g "$(npm pack)" && npm link iotivity-node
fi
- npm install --ignore-scripts
script:
- grunt "${TEST_SCRIPT}" --ci
notifications:
irc:
channels:
- chat.freenode.net#iotivity-node