-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
58 lines (48 loc) · 1.38 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
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
# pip libraries
- pip install six
- pip install pymongo
- pip install synergy_scheduler
- pip install synergy_odm
- pip install boto3
- pip install google-auth-httplib2 google-api-python-client google-cloud-dataproc google-cloud-storage
- pip install azure-storage # azure-storage-blob
before_script:
- sudo mkdir --mode=777 -p /var/log/synergy-flow
# - ${PYTHON_BINARY} launch.py install
# - ${PYTHON_BINARY} launch.py db --reset
script:
- ${PYTHON_BINARY} -m unittest discover tests
branches:
only:
- master
- unstable