forked from lesander/fritzbox.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci.sh
executable file
·34 lines (27 loc) · 1.1 KB
/
ci.sh
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
#/usr/bin/env/sh
set -e
pwd
echo ' FritzBox.js CI Test'
# Check for runtime errors.
node --harmony-async-await index.js
echo ' ✓ No syntax errors found.'
# Run StandardJS linter
standard
echo ' ✓ Code is complaint with StandardJS.'
# Run documentation.js linter
documentation lint src/**
echo ' ✓ Code documentation is complaint with JSDoc.'
# Test some features.
echo ' Running test scripts..'
node --harmony-async-await test/version.js # async ready
node --harmony-async-await test/login.js # async ready
node --harmony-async-await test/calls.js # async ready
node --harmony-async-await test/smartdevices.js # async ready
node --harmony-async-await test/tam.js # async ready
node --harmony-async-await test/phonebook.js # async ready
node --harmony-async-await test/activecalls.js # async ready
#node --harmony-async-await test/dial.js # async ready
node --harmony-async-await test/markread.js # async ready
node --harmony-async-await test/tamdownload.js # async ready
node --harmony-async-await test/toggleswitch.js # async ready
echo " ✓ Finished with tests."