-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
69 lines (60 loc) · 2.1 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
sudo: required
dist: trusty
group: edge
language: erlang
otp_release:
- 17.3
- 17.5
- 18.3
- 19.0
services:
- redis-server
addons:
apt:
packages:
- python-redis
- python-twisted-web
cache:
pip: true
directories:
- $HOME/.cache/rebar3/
# - $HOME/.kerl
# - $HOME/otp
install:
# get deps, compile code, generates config according to choosed environment
- DEBUG=1 make env=travis all
# create autosigned certificate (single & chained w/ CA)
- make cert && make chain-cert
# need to enable TLSv1 as python2.7 do not support TLS >= 1.1
- sed -ie "s/{versions, .*\}/{versions, ['tlsv1', 'tlsv1.1', 'tlsv1.2']}/g" .wave.travis.config
# nyamuk is a python MQTT client used for blackbox tests
- pip install --user websocket-client
- "git clone -b enhancement https://github.com/gbour/nyamuk.git tests/nyamuk"
- "git clone https://github.com/gbour/twotp.git tests/twotp"
- "git clone https://github.com/gbour/python_etf.git tests/etf"
- pip install --user -r tests/etf/test_requirements.txt
- "git clone https://github.com/gbour/apache-log-parser.git tests/logparser"
- pip install --user -r tests/logparser/requirements.txt
- "git clone https://github.com/gbour/paho.mqtt.testing tests/paho"
before_script:
- kerl list installations
# starting wave broker
- "erl -pa `find -L _build/travis -name ebin` -s wave_app -config .wave.travis.config -noinput -name 'wave@127.0.0.1' -setcookie wave&"
- PID=$!
# wait until broker started
- sleep 10
script:
- make dialyze
# set context (auth, acl) for paho tests
- PYTHONPATH=tests/twotp tests/paho_setup init
- python3 tests/paho/interoperability/client_test.py --iterations 3 -zs 2> /tmp/wave.paho.log
- PYTHONPATH=tests/twotp tests/paho_setup cleanup
#
- make DEBUG=/tmp/wave.tests.log WAVELOGS=/tmp/wave.travis.log env=travis test
after_script:
- kill -HUP $PID
- cat /tmp/wave.tests.log
- cat /tmp/wave.paho.log
- cat /tmp/wave.travis.log
notifications:
email: "travis-wave@bour.cc"