forked from Widukind/dlstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (30 loc) · 1.16 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
sudo: required
language: python
python:
- "3.4"
services:
- docker
cache:
- apt
env:
- MONGO_IMAGE=mongo:3.2.0 DOCKER_OPTIONS="-e WIDUKIND_MONGODB_URL=mongodb://mongodb/widukind_test --link=mongodb:mongodb --rm"
before_install:
- docker pull $MONGO_IMAGE
- docker run -d --name=mongodb $MONGO_IMAGE mongod --noauth
- docker build -t widukind/dlstats -f DockerfileTests .
- pip install coveralls
before_script:
- sleep 15
- env
- docker run $DOCKER_OPTIONS widukind/dlstats pip freeze
script:
- docker run $DOCKER_OPTIONS widukind/dlstats dlstats --version
- docker run $DOCKER_OPTIONS widukind/dlstats dlstats mongo check
- docker run $DOCKER_OPTIONS -e COVERAGE_FILE=/coverage/.coverage -v $PWD/coverage:/coverage widukind/dlstats nosetests --with-coverage -s -v dlstats
#- docker run $DOCKER_OPTIONS -e COVERAGE_FILE=/coverage/.coverage -v $PWD/coverage:/coverage widukind/dlstats coverage run --source=dlstats setup.py test
- docker run $DOCKER_OPTIONS widukind/dlstats flake8 --exit-zero dlstats
after_script: COVERAGE_FILE=./coverage/.coverage coveralls --verbose
notifications:
email: true
on_success: always
on_failure: always