Fix #1 by adding basic Travis CI
This commit is contained in:
parent
19d3bcdac8
commit
e6c5709acf
31
.travis.yml
Normal file
31
.travis.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
dist: trusty
|
||||||
|
sudo: required
|
||||||
|
|
||||||
|
services: docker
|
||||||
|
|
||||||
|
language: bash
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- env | sort
|
||||||
|
- image="roundcube/roundcubemail:${VERSION}${VARIANT:+-$VARIANT}"
|
||||||
|
- dir="php-${VARIANT}"
|
||||||
|
|
||||||
|
script:
|
||||||
|
- travis_retry docker build -t "$image" "$dir"
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- docker images
|
||||||
|
- docker run -d "$image" "$dir"
|
||||||
|
- docker ps
|
||||||
|
- docker logs "$image"
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
|
|
||||||
|
env: # Environments
|
||||||
|
- VERSION=1.3.4 VARIANT=fpm
|
||||||
|
- VERSION=1.3.4 VARIANT=apache
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
[](https://travis-ci.org/roundcube/roundcubemail-docker)
|
||||||
|
[](https://hub.docker.com/r/roundcube/roundcubemail-docker/)
|
||||||
|
[](https://hub.docker.com/r/roundcube/roundcubemail-docker/)
|
||||||
|
|
||||||
# Running Roundcube in a Docker Container
|
# Running Roundcube in a Docker Container
|
||||||
|
|
||||||
The simplest method is to run the official image:
|
The simplest method is to run the official image:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user