forked from plhyhc/homebridge-garage-door-wsensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 804 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
language: node_js
env:
- ARCH=arm
node_js: "8.11.3"
branches:
only:
- master
before_install:
- sudo apt-get update
- sudo apt-get install build-essential libavahi-compat-libdnssd-dev git
- npm config set strict-ssl false
- nvm install 8.11.3
- nvm use 8.11.3
- npm install -g --unsafe-perm homebridge
- git clone git://github.com/quick2wire/quick2wire-gpio-admin.git
- cd quick2wire-gpio-admin
- make
- sudo make install
- sudo adduser $USER gpio
- cd ../
- sudo echo "0" > /sys/class/gpio/gpio15/value
- sudo echo "0" > /sys/class/gpio/gpio17/value
before_script:
- "npm install -g homebridge-garage-door-wsensor"
- "mkdir /home/travis/.homebridge"
- "cp config.sample.json /home/travis/.homebridge/config.json"
script: "homebridge & sleep 30; kill $!;"