-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
51 lines (42 loc) · 1.09 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
language: python
# Ubuntu 18.04 (Bionic Beaver)
dist: bionic
matrix:
include:
- python: "3.7"
env: PYTHON_BINARY="python3.7"
addons:
hosts:
# hostnames will be enlisted in /etc/hosts and resolved to 127.0.0.1
- syn-rabbitmq
- syn-mongodb
apt:
packages:
- python3.7
- python3.7-dev
- python3.7-venv
- python3-setuptools
services:
- docker
before_install:
# deactivate Travis-CI Python3 VirtualEnv, as it conflicts with the launch.py one
- deactivate
install:
# mongodb section
- docker pull mongo:3
- docker run -d --name syn-mongodb -p 27017:27017 mongo:3
# rabbit mq section
- docker pull rabbitmq:3
- docker run -d --hostname syn-rabbitmq --name syn-rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management
- scripts/rabbitmq_config.sh
before_script:
- sudo mkdir --mode=777 -p /var/log/synergy-scheduler
- ${PYTHON_BINARY} launch.py install
- ${PYTHON_BINARY} launch.py db --reset
script:
- python3 launch.py test
branches:
only:
- master
- 2.3
- 2.4