comment-server/.travis.yml

35 lines
760 B
YAML
Raw Normal View History

2019-08-13 15:32:34 +02:00
sudo: required
2019-08-13 14:40:44 +02:00
language: python
2019-08-13 15:32:34 +02:00
dist: xenial
python: 3.8
# for docker-compose
services:
- docker
# to avoid "well it works on my computer" moments
env:
- DOCKER_COMPOSE_VERSION=1.25.4
before_install:
# ensure docker-compose version is as specified above
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# refresh docker images
- sudo apt-get update
before_script:
- docker-compose up -d
2019-08-13 14:40:44 +02:00
2019-08-13 15:32:34 +02:00
jobs:
include:
- stage: "Tests"
name: "Unit Tests"
install:
- pip install -e .
script:
2019-08-23 20:16:52 +02:00
- python -m unittest