2018-09-24 01:23:07 +02:00
|
|
|
sudo: required
|
|
|
|
services: docker
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- docker-ce
|
|
|
|
env:
|
|
|
|
- VERSION=$TRAVIS_BRANCH
|
2018-10-25 14:27:09 +02:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "3.6"
|
|
|
|
install:
|
|
|
|
- pip install -r tests/requirements.txt
|
2018-09-24 01:23:07 +02:00
|
|
|
|
2017-11-04 23:47:40 +02:00
|
|
|
script:
|
2018-10-06 16:24:42 +02:00
|
|
|
# Default to mailu for DOCKER_ORG
|
2018-10-06 16:31:01 +02:00
|
|
|
- if [ -z "$DOCKER_ORG" ]; then export DOCKER_ORG="mailu"; fi
|
2018-10-06 16:36:59 +02:00
|
|
|
- docker-compose -f tests/build.yml build
|
2018-10-25 14:27:09 +02:00
|
|
|
- python tests/compose/test.py
|
2018-10-04 13:42:34 +02:00
|
|
|
|
2018-10-05 10:51:35 +02:00
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
script: bash tests/deploy.sh
|
2018-10-05 12:02:10 +02:00
|
|
|
on:
|
|
|
|
all_branches: true
|
2018-10-06 16:04:14 +02:00
|
|
|
condition: -n $DOCKER_UN
|
2018-10-05 10:51:35 +02:00
|
|
|
|