-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
44 lines (34 loc) · 1.28 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
sudo: required
language: python
python:
- "3.4"
services:
- docker
cache:
- apt
env:
- MONGO_IMAGE=mongo:3.2.7 DOCKER_OPTIONS="-e USE_MONGO_SERVER=1 -e WIDUKIND_MONGODB_URL=mongodb://mongodb/widukind_test?connectTimeoutMS=60000&serverSelectionTimeoutMS=60000 --link=mongodb:mongodb --rm"
before_install:
- docker pull $MONGO_IMAGE
- docker run --privileged -d --name=mongodb $MONGO_IMAGE mongod --noauth --storageEngine wiredTiger --wiredTigerDirectoryForIndexes --directoryperdb
- docker build -t widukind/dlstats -f DockerfileTests .
- pip install coveralls
before_script:
- sleep 15
- env
- docker version
- docker -D info
- 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 dlstats
- 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
on_start: always
webhooks:
- https://webhooks.gitter.im/e/1e371085c950f03e2221