-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (67 loc) · 1.47 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
language: cpp
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- g++-4.8-multilib
- gcc-multilib
- build-essential
- libbluetooth-dev
- libudev-dev
- libusb-1.0-0-dev
env:
global:
- DEBUG_CORE_DUMP="true"
matrix:
- PACKAGER_NODE_VERSION="5.5" PACKAGER_ARCH="amd64" MAIN_BUILD="true"
- PACKAGER_NODE_VERSION="5.5" PACKAGER_ARCH="386"
matrix:
fast_finish: true
exclude:
- os: osx
env: PACKAGER_NODE_VERSION="5.5" PACKAGER_ARCH="386"
branches:
only:
- "/^v[0-9]/"
before_install:
- ulimit -c unlimited -S
- PACKAGER_URL="https://meshblu-connector.octoblu.com/tools/packager/latest"
- curl -fsS "${PACKAGER_URL}/travis_install_node.sh" -o /tmp/travis_install_node.sh
- chmod +x /tmp/travis_install_node.sh
- ". /tmp/travis_install_node.sh"
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$MAIN_BUILD" == "true" ]; then export NPM_PUBLISH="true"; fi
install:
- npm install --build-from-source
script:
- npm test
before_deploy:
- npm prune --production
- npm install meshblu-connector-packager
- npm dedupe
- npm install -g flatten-packages
- flatten-packages
- npm run generate:package
- npm run generate:schema
- cp schemas.json deploy
deploy:
- provider: releases
api_key:
[github-release-key]
file_glob: true
file:
- "deploy/*"
skip_cleanup: true
on:
tags: true
- provider: npm
email: [npm-email]
api_key:
[npm-release-key]
on:
tags: true
condition: "$NPM_PUBLISH = true"