forked from thefactory/marathon-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (37 loc) · 964 Bytes
/
tox.ini
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
[tox]
passenv = TRAVIS
usedevelop=True
basepython = python2.7
envlist = py
[testenv:itests]
passenv = TRAVIS MARATHONVERSION
basepython = python2.7
whitelist_externals=/bin/bash
skipsdist=True
changedir=itests/
deps =
docker-compose==1.3.1
behave
mock
commands =
/bin/bash -c "[[ -n $TRAVIS ]] || echo MARATHONVERSION=$MARATHONVERSION > marathon-version"
/bin/bash -c "[[ -n $TRAVIS ]] || docker-compose build"
/bin/bash -c "[[ -n $TRAVIS ]] || docker-compose pull"
/bin/bash -c "[[ -n $TRAVIS ]] || docker-compose up -d"
behave {posargs}
/bin/bash -c "[[ -n $TRAVIS ]] || docker-compose stop"
/bin/bash -c "[[ -n $TRAVIS ]] || docker-compose rm --force"
[testenv]
usedevelop=True
basepython = python2.7
install_command = pip install --upgrade {opts} {packages}
deps = -rrequirements.txt
[testenv:py]
recreate=True
basepython = python2.7
deps =
{[testenv]deps}
pytest
mock
commands =
py.test -s {posargs:tests}