forked from elastest/elastest-service-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (29 loc) · 919 Bytes
/
.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
# ref: https://docs.travis-ci.com/user/languages/python
# note: the docker build goes to dizz as the credentials for elastest are not available yet
language: python
python:
- "3.6"
sudo: required
install:
- "pip install -r src/requirements.txt"
- "pip install -r tests/test-requirements.txt"
- "pip install codecov" # only for use on travis
env:
- MONGODB_TESTS=YES
- DOCKER_TESTS=YES
before_script:
- sleep 15
- docker network create elastest
script:
- nosetests --with-xunit --with-coverage --cover-erase --cover-package=adapters --cover-package=esm --cover-min-percentage=70
- docker build -t dizz/esm .
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
services:
- docker
- mongodb
after_success:
- codecov
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push dizz/elastest-service-manager;
fi