This repository has been archived on 2021-08-31. You can view files and clone it, but cannot push or open issues or pull requests.
mattermost/.travis.yml
Francois-D 9eb10f5cf3
Remove sudo: required as it is deprecated. (#485)
Co-authored-by: francois-d <dfrancis2.primus.ca>
2020-07-21 08:52:04 +02:00

23 lines
762 B
YAML

services:
- docker
before_install:
- docker build -t mattermost-prod-db db
- docker build -t mattermost-prod-app app
install:
- eval $BUILD
- sleep 30
env:
- BUILD="mkdir -p ./volumes/app/mattermost/{data,logs,config,plugins} && docker-compose up -d"
- BUILD="docker run -d --name db -e POSTGRES_USER=mmuser -e POSTGRES_PASSWORD=mmuser_password -e POSTGRES_DB=mattermost mattermost-prod-db && sleep 5 && docker run -d --link db -p 80:8000 --name app -e MM_USERNAME=mmuser -e MM_PASSWORD=mmuser_password mattermost-prod-app"
script:
- curl -sSf http://localhost > /dev/null
- docker ps -a | grep app | grep healthy
- docker ps -a | grep db | grep healthy
after_failure:
- timeout 3s docker-compose logs app db web