mirror of
https://github.com/wallabag/docker
synced 2025-12-12 17:26:25 +00:00
travis builds and spins up containers for sqlite, mariadb and postgres and runs a simple python test script for accessing the wallabag.
26 lines
396 B
YAML
26 lines
396 B
YAML
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/
|