2021-04-21 16:35:50 +00:00
|
|
|
os: linux
|
|
|
|
|
2019-07-15 14:01:45 +00:00
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
services: docker
|
|
|
|
|
2021-04-21 16:35:50 +00:00
|
|
|
language: shell
|
2019-07-15 14:01:45 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- env | sort
|
|
|
|
- dir="${VARIANT}/"
|
|
|
|
|
|
|
|
script:
|
|
|
|
- cd "$dir"
|
|
|
|
- travis_wait docker build --build-arg VERSION=${VERSION} -t ejabberd/ecs:travis-${VERSION} .
|
|
|
|
- docker images
|
|
|
|
- travis_retry docker run --name ejabberd -d -p 5222:5222 ejabberd/ecs && sleep 60
|
2019-07-15 14:17:09 +00:00
|
|
|
- docker ps
|
2019-07-15 14:01:45 +00:00
|
|
|
- docker logs ejabberd
|
|
|
|
- docker logs ejabberd | grep "Start accepting TCP connections" || exit 1
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
2019-07-15 14:08:34 +00:00
|
|
|
- env: VERSION=latest VARIANT=ecs
|
|
|
|
- env: VERSION=latest VARIANT=mix
|
2019-07-15 14:01:45 +00:00
|
|
|
|
2021-04-21 16:35:50 +00:00
|
|
|
env:
|
2019-07-15 14:08:34 +00:00
|
|
|
- VERSION=latest VARIANT=ecs
|
|
|
|
- VERSION=latest VARIANT=mix
|