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

23 lines
762 B
YAML
Raw Permalink Normal View History

2016-04-18 17:53:33 +02:00
services:
- docker
before_install:
- docker build -t mattermost-prod-db db
- docker build -t mattermost-prod-app app
install:
- eval $BUILD
- sleep 30
2016-04-18 17:53:33 +02:00
env:
2018-08-22 14:47:58 +02:00
- 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"
2016-04-18 17:53:33 +02:00
script:
- curl -sSf http://localhost > /dev/null
2018-04-15 19:33:49 +02:00
- docker ps -a | grep app | grep healthy
- docker ps -a | grep db | grep healthy
2016-04-20 06:58:47 +02:00
after_failure:
- timeout 3s docker-compose logs app db web