-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
50 lines (43 loc) · 1.23 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
sudo: required
addons:
apt:
sources:
- sourceline: 'ppa:mosquitto-dev/mosquitto-ppa'
- sourceline: 'deb http://packages.prosody.im/debian trusty main'
key_url: 'https://prosody.im/files/prosody-debian-packages.key'
packages:
- curl
- mosquitto
- zookeeperd
- prosody-0.10
- lua-bitop
- lua-sec
- openjdk-8-jre-headless
services:
- mosquitto
- redis-server
- zookeeper
- prosody
env:
global:
- COVERAGE_PROCESS_START=".coveragerc"
- KARAF_DIR=/tmp
install:
- sudo prosodyctl register user1 localhost foobar
- sudo prosodyctl register user2 localhost foobar
- sudo prosodyctl restart
- curl -qL http://apache.mediamirrors.org/karaf/4.2.1/apache-karaf-4.2.1.tar.gz | tar xz -C /tmp
- curl -qL https://github.com/etcd-io/etcd/releases/download/v3.3.10/etcd-v3.3.10-linux-amd64.tar.gz | tar xz -C /tmp && /tmp/etcd-v3.3.10-linux-amd64/etcd &
- pip install nose coverage coverage_enable_subprocess coveralls
- pip install https://github.com/tcalmant/jsonrpclib/archive/master.zip
- pip install -r requirements.txt
script:
- nosetests -v --with-coverage --cover-package=pelix tests
after_success:
- coveralls