Fix #1 by adding basic Travis CI
authormadmath03 <redacted>
Sat, 24 Mar 2018 18:29:26 +0000 (19:29 +0100)
committermadmath03 <redacted>
Sat, 24 Mar 2018 18:29:26 +0000 (19:29 +0100)
.travis.yml [new file with mode: 0644]
README.md

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..836c547
--- /dev/null
@@ -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
index b62646856ccaa04daddcd88b1d7fbc494b643091..657fe07b6c9499c643cb2cee94bdb7ea2af18936 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,3 +1,8 @@
+
+[![Build Status](https://travis-ci.org/roundcube/roundcubemail-docker.svg)](https://travis-ci.org/roundcube/roundcubemail-docker)
+[![Docker Automated buid](https://img.shields.io/docker/build/roundcube/roundcubemail-docker.svg)](https://hub.docker.com/r/roundcube/roundcubemail-docker/)
+[![Docker Pulls](https://img.shields.io/docker/pulls/roundcube/roundcubemail-docker.svg)](https://hub.docker.com/r/roundcube/roundcubemail-docker/)
+
 # Running Roundcube in a Docker Container
 
 The simplest method is to run the official image:
git clone https://git.99rst.org/PROJECT