added travis testing

travis builds and spins up containers for sqlite, mariadb and postgres
and runs a simple python test script for accessing the wallabag.
This commit is contained in:
Marvin Steadfast
2016-08-29 09:30:59 +02:00
parent 107beb115c
commit 4a81bc45db
6 changed files with 105 additions and 0 deletions

25
.travis.yml Normal file
View File

@ -0,0 +1,25 @@
language: python
python:
- 3.5
services:
- docker
env:
- DB_TYPE=sqlite
- DB_TYPE=mariadb
- DB_TYPE=postgresql
install:
- docker-compose -f tests/docker-compose.$DB_TYPE.yml build
- docker-compose -f tests/docker-compose.$DB_TYPE.yml up -d
before_script:
- pip install pytest
- pip install requests
script:
- docker ps | grep -q wallabag
- sleep 60
- py.test tests/