forked from intel/iotivity-node
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
96 lines (94 loc) · 3.14 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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
- env: NODE_VERSION=8.4.0 TEST_SCRIPT=test SET_NODE_OPTIONS=--napi-modules
os: linux
addons: *1
- env: NODE_VERSION=8.4.0 TEST_SCRIPT=test SET_NODE_OPTIONS=--napi-modules
os: osx
osx_image: xcode8.2
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}"
- |
if test "x${TRAVIS_OS_NAME}x" = "xosxx"; then
sudo easy_install pip
sudo pip install --egg 'scons<3.0.0'
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)"
fi
- npm install --ignore-scripts
- |
if test "x${TEST_SCRIPT}x" = "xtestx" -o "x${TEST_SCRIPT}x" = "xpublish-coveragex"; then
npm link iotivity-node
fi
script:
- NODE_OPTIONS="${SET_NODE_OPTIONS}" grunt "${TEST_SCRIPT}" --ci
# Send a notification to chat.freenode.net#iotivity-node
# The server#channel-name is encrypted so notifications are only sent from the
# main repo and not from forks or PRs.
notifications:
irc:
channels:
- secure: i1PXMQry2x9WqT2Iv9Lq66+VHkettjrDhiC1C6ha/yPI5P9sNGZmad0hiBtg7Z8NfmaFuWUqwFI5fnw/iM1hqQKMQVIuYLsLdagZLldtYcUR3Un+2yVsn9PFj5PnS2kd9aUBOO+7YOt1v6snRGGJQsjlD5cAKaZ7QZrw2OpMVsjLmS1TjrOZz6jPkZUqixVo+lnnWTKIWjx7LIkaCiihPUn1CDV5ke3s9BLp/9NhCe77wa2qq1AXIjrjUYPif9kogqnIKJW/KTqvgcixOTxJqjNIC/dKWU8UEyH3ZeH9JxeSrZwxztTOHCgfcDklanZrI9uCUOMOa1Vs/MxW8FLxr09SsjYWH4GYjQpb5RRzHvRLYlL1VukdUz1M5nr0riImrDDumigxxGNpmgLprQ9w1jkMK1AnDtAhA8CBkad+D0gkuwRej53izi285zPu9MV/DTSW1zGmYo33GoyV3pbkuItdCEERmC7aoY4cRTLjjdOL8dJUjpZ8R7mGJRZWEtDl629eSbDhciA8LM9SCiXLrT73wiHtSO/fE/BPJy2QBOQfbtEx7HCQ3yNyPFmvkE/cZts0dtF5WAOhw6xSDXuNKq+rdk3bv133GOoqoTZ7rs1R11fKPOZG6MKDyyGrSHB3vG6u1L+9blq9CYTvfncka/u7HVh9RV1cuzCuYfY7yog=