2019-01-22 16:39:42 +02:00
|
|
|
branches:
|
2019-01-24 15:23:25 +02:00
|
|
|
only:
|
|
|
|
- staging
|
|
|
|
- testing
|
|
|
|
- '1.5'
|
|
|
|
- '1.6'
|
2019-08-21 13:27:39 +02:00
|
|
|
- '1.7'
|
2019-01-24 15:23:25 +02:00
|
|
|
- master
|
2019-01-22 16:39:42 +02:00
|
|
|
|
2018-09-24 01:23:07 +02:00
|
|
|
sudo: required
|
|
|
|
services: docker
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- docker-ce
|
2018-10-25 17:12:07 +02:00
|
|
|
|
2018-09-24 01:23:07 +02:00
|
|
|
env:
|
2019-01-22 16:39:42 +02:00
|
|
|
- MAILU_VERSION=${TRAVIS_BRANCH////-}
|
|
|
|
|
2018-10-25 14:27:09 +02:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "3.6"
|
|
|
|
install:
|
|
|
|
- pip install -r tests/requirements.txt
|
2018-10-25 17:12:07 +02:00
|
|
|
- sudo curl -L https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
|
|
|
|
- sudo chmod +x /usr/local/bin/docker-compose
|
2018-09-24 01:23:07 +02:00
|
|
|
|
2018-10-25 16:35:53 +02:00
|
|
|
before_script:
|
2018-10-25 17:12:07 +02:00
|
|
|
- docker-compose -v
|
2018-10-06 16:36:59 +02:00
|
|
|
- docker-compose -f tests/build.yml build
|
2018-11-02 15:32:36 +02:00
|
|
|
- sudo -- sh -c 'mkdir -p /mailu && cp -r tests/certs /mailu && chmod 600 /mailu/certs/*'
|
2018-11-02 15:17:59 +02:00
|
|
|
|
2019-01-22 16:39:42 +02:00
|
|
|
|
2018-10-25 16:35:53 +02:00
|
|
|
script:
|
2018-10-25 15:35:08 +02:00
|
|
|
# test.py, test name and timeout between start and tests.
|
|
|
|
- python tests/compose/test.py core 1
|
2018-10-25 16:35:53 +02:00
|
|
|
- python tests/compose/test.py fetchmail 1
|
|
|
|
- travis_wait python tests/compose/test.py filters 10
|
|
|
|
- python tests/compose/test.py rainloop 1
|
|
|
|
- python tests/compose/test.py roundcube 1
|
|
|
|
- python tests/compose/test.py webdav 1
|
2019-01-24 15:23:25 +02:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
script: bash tests/deploy.sh
|
|
|
|
on:
|
|
|
|
all_branches: true
|
|
|
|
condition: -n $DOCKER_UN
|