-
Notifications
You must be signed in to change notification settings - Fork 24
/
circle.yml
43 lines (43 loc) · 1.76 KB
/
circle.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
machine:
services:
- docker
python:
version: 2.7.6
environment:
PYEJABBERD_TESTS_HOST: 127.0.0.1
PYEJABBERD_TESTS_PORT: 4560
PYEJABBERD_TESTS_USERNAME: admin
PYEJABBERD_TESTS_PASSWORD: admin
PYEJABBERD_TESTS_XMPP_DOMAIN: example.com
PYEJABBERD_TESTS_MUC_SERVICE: conference
PYEJABBERD_TESTS_PROTOCOL: http
PYEJABBERD_TESTS_VERBOSE: 0
PIP_CACHE_DIR: ~/pip-cache
post:
- pyenv global pypy-2.4.0 2.6.8 2.7.9 3.3.3 3.4.2
dependencies:
cache_directories:
- "~/docker"
- "~/pip-cache"
pre:
- pip install -U pip
override:
- pip install tox
- docker info
- if [[ -e ~/docker/ejabberd-latest.tar ]]; then docker load --input ~/docker/ejabberd-latest.tar; fi
- docker pull rroemhild/ejabberd:latest
- mkdir -p ~/docker; docker save rroemhild/ejabberd:latest > ~/docker/ejabberd-latest.tar
- if [[ -e ~/docker/ejabberd-15.06.tar ]]; then docker load --input ~/docker/ejabberd-15.06.tar; fi
- docker pull rroemhild/ejabberd:15.06
- mkdir -p ~/docker; docker save rroemhild/ejabberd:15.06 > ~/docker/ejabberd-15.06.tar
- if [[ -e ~/docker/ejabberd-15.07.tar ]]; then docker load --input ~/docker/ejabberd-15.07.tar; fi
- docker pull rroemhild/ejabberd:15.07
- mkdir -p ~/docker; docker save rroemhild/ejabberd:15.07 > ~/docker/ejabberd-15.07.tar
test:
pre:
- export EJABBERD_VERSION=latest; export EJABBERD_XMLRPC_PORT=4560; ./ejabberd.sh
- export EJABBERD_VERSION=15.06; export EJABBERD_XMLRPC_PORT=4561; ./ejabberd.sh
- export EJABBERD_VERSION=15.07; export EJABBERD_XMLRPC_PORT=4562; ./ejabberd.sh
override:
- sleep 10
- tox