-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
64 lines (64 loc) · 2.73 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
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 run generate:package
- npm run generate:schema
- cp schemas.json deploy
deploy:
- provider: releases
api_key:
secure: "d30lHMGJMDcx16Rsrrz3Aq2GLA/TnOiaa+aQmv11fX3RpQPk9JiWYqYUH7eC5602l+Gww7VVnTNxQJmI0gj3JxHWl2hIjIPplrX29wbY1ZQgnVWfsptEGhJ3wWRS1twup3eAu/HTc1h2eVhCJOLvkdBkba27cSIw1zAo8wY8Dd5hpZN5Y9xusupVPxi665hLahtrQWmsfEoK5Zk6tLA/M3IguSgCdGsJb6QDWx/TJK/cHk7/VOSqXrqmakcdClPiuwFROYhOHX8viPE5XtejeVsM0NcjnOwf2Bh6LNzo57WpJBzqHZKMarA5O02X/ybfDy6hfBynq/MDEsWXnEAjrP1lXqdFx5PvxhVROeN/gZ7fU7JMOtDX8IvlKmvEY+7E/h5AQRZtvolQrMBEWeIeYHp36oLK9eFwlWYGcRvcrrb87e2QddapqvUmV4xuvzR6uy2MVqXhYxR4zO7LlT7l2iiIUW21Zx0tBdiop3I3Kn2xlSBn8TM4UD80TE2scaAKpKMrfeH0MoYv2CKvMat0X2Iy3byqj5WcA2Go66+vWc+rqpxL6utrrfyFac7HilimkxGULSOJIaPOBSexCnWHcYZeYsVjkEaF4Fhsii+Laj1yLodGaVPcENwA7MEH8S93mzVMyG2Q5LCwFjlwb5RlnBFi1GXrYlIPIZyO7lyKYAs="
file_glob: true
file:
- "deploy/*"
skip_cleanup: true
on:
tags: true
- provider: npm
email: [email protected]
api_key:
secure: "Ud1KjOAoAlUE4/f6DAKRuEyWYS0vG5mXxoehlixfKkLtaSJ1aZf8AJgchSFd+8KgLGVQbZJgvv2Cmzy7MT0nZ9iCXpDLNnYXyXKc1AnXgC5hPANtbmuKbkwql+Y3dlw3/g01NWISbVY3qrXQwoSWHeR9FKGEFrEX88KvJ7E7qDD2CTSn5CzD6lx+mhvJP9h7e8SYVS7AMuu/CM6II1NM0kZGNRfjyYUWy/C0hrjjOZ08Jb0Fwn7Ezqc1V0jwqJWlLh/iiik3UOXD1LrbgKFQk7aQbHN6xTvCK+dHQsNz812B5hYEDQtQCOsOe9clxt6nDLC91u0bVMVC5yDeDeTOCBuIBU4/TIKY+nWsB6On7RFapontr/wc3Zia6NqFNrCtEyX7hbAz0wSUBOPekyx0LbPztbHQxBrI/GEucXOXEcyyj7uggYpLOinsWAcdfwwCZjvh+r6O0+DxY1UTuY10RKaucejrZGT2bPK+ERKSgYbCaLLM1xtqYKeI4q5w6beSPK8fgEn34Ex7/dsUx1CGtC8kzEDlnpucrOhbtyolhcfcNyJ6ggTzU2lS0NGUOZqi05/Lz+LtWkUFPW61FhtvRJJVJqgBlWtckpbhnbU9eIRZcV6NPFqvy4ZYnVNvDOIYa2BuJbeMBYcJe9YZ1jieJ7+m8bkiuQEQ2w7i08cwdA8="
on:
tags: true
condition: "$NPM_PUBLISH = true"