2017-07-06 03:14:04 +00:00
|
|
|
sudo: required
|
2017-07-06 03:19:44 +00:00
|
|
|
language: python
|
2017-08-29 04:34:08 +00:00
|
|
|
addons:
|
|
|
|
hosts:
|
|
|
|
- docker
|
2017-07-06 03:14:04 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
python:
|
|
|
|
- "2.7"
|
|
|
|
install:
|
2017-08-29 20:16:06 +00:00
|
|
|
- docker build -f tests/docker/$ANKI_VERSION/Dockerfile -t txgio/anki-connect:$ANKI_VERSION .
|
2017-07-06 03:55:10 +00:00
|
|
|
script:
|
2017-08-29 20:16:06 +00:00
|
|
|
- docker run -ti -d --rm -p 8888:8765 -e ANKICONNECT_BIND_ADDRESS=0.0.0.0 txgio/anki-connect:$ANKI_VERSION
|
2017-08-29 04:49:13 +00:00
|
|
|
- ./tests/scripts/wait-up.sh http://docker:8888
|
2017-08-29 20:16:06 +00:00
|
|
|
- python -m unittest discover -s tests -v
|
|
|
|
|
|
|
|
env:
|
|
|
|
- ANKI_VERSION=2.0.x
|
|
|
|
- ANKI_VERSION=2.1.x
|