forked from tendrilinc/marathon-autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 1.06 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
language: python
dist: trusty
python:
- "2.7"
- "3.5"
services:
- docker
env:
global:
- PATH=$PATH:$HOME/.minimesos/bin
install:
- curl -sSL https://minimesos.org/install | sh
- pip install -r requirements.txt
- pip install jinja2
- minimesos up
- eval $(minimesos info | tail -n +3)
- export DOCKER_REGISTRY=127.0.0.1:5000
- docker build -t marathon-autoscaler:localbuild .
- docker build -t stress-tester-app:localbuild tests/stress_tester_app
- docker tag marathon-autoscaler:localbuild ${DOCKER_REGISTRY}/marathon-autoscaler:localbuild
- docker tag stress-tester-app:localbuild ${DOCKER_REGISTRY}/stress-tester-app:localbuild
- docker push ${DOCKER_REGISTRY}/marathon-autoscaler:localbuild
- docker push ${DOCKER_REGISTRY}/stress-tester-app:localbuild
- python scripts/render_template.py tests/minimesos/marathon-autoscaler-app-def.json -o autoscaler-app.json
- minimesos install --marathonFile autoscaler-app.json
script:
- py.test --cov=lib/marathon_autoscaler/
- curl $MINIMESOS_MARATHON/v2/apps
after_script:
- minimesos destroy