2017-05-10 20:00:16 +00:00
|
|
|
language: bash
|
|
|
|
dist: trusty
|
2016-12-26 20:44:04 +00:00
|
|
|
sudo: required
|
2016-11-03 13:48:09 +00:00
|
|
|
|
2016-12-26 02:54:59 +00:00
|
|
|
|
2016-12-26 14:13:46 +00:00
|
|
|
###
|
2016-12-26 20:44:04 +00:00
|
|
|
### Attach services
|
2016-11-03 13:48:09 +00:00
|
|
|
###
|
2016-12-26 20:44:04 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2016-11-03 13:48:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
### Global variables
|
|
|
|
###
|
|
|
|
env:
|
2016-12-26 20:44:04 +00:00
|
|
|
matrix:
|
2017-05-10 20:00:16 +00:00
|
|
|
# Test httpd
|
|
|
|
- SERVER=httpd VERSION=apache-2.2 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=httpd VERSION=apache-2.4 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=httpd VERSION=nginx-stable DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=httpd VERSION=nginx-mainline DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
# Test mysql
|
|
|
|
- SERVER=mysql VERSION=mysql-5.5 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=mysql VERSION=mysql-5.6 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=mysql VERSION=mysql-5.7 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=mysql VERSION=mysql-8.0 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=mysql VERSION=mariadb-5.5 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=mysql VERSION=mariadb-10.0 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=mysql VERSION=mariadb-10.1 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=mysql VERSION=mariadb-10.2 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=mysql VERSION=mariadb-10.3 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
# Test pgsql
|
|
|
|
- SERVER=pgsql VERSION=9.2 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=pgsql VERSION=9.3 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=pgsql VERSION=9.4 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=pgsql VERSION=9.5 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=pgsql VERSION=9.6 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
# Test php
|
|
|
|
- SERVER=php VERSION=php-fpm-5.4 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=php VERSION=php-fpm-5.5 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=php VERSION=php-fpm-5.6 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=php VERSION=php-fpm-7.0 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=php VERSION=php-fpm-7.1 DOCKER_COMPOSE_VERSION=1.13.0
|
|
|
|
- SERVER=php VERSION=hhvm-latest DOCKER_COMPOSE_VERSION=1.13.0
|
2016-12-26 02:54:59 +00:00
|
|
|
|
2016-11-03 13:48:09 +00:00
|
|
|
|
2016-11-03 15:06:54 +00:00
|
|
|
###
|
|
|
|
### Berfore Install
|
|
|
|
###
|
|
|
|
before_install:
|
2017-05-10 20:00:16 +00:00
|
|
|
# List info
|
2016-12-25 13:58:55 +00:00
|
|
|
- whoami
|
2016-12-25 14:16:11 +00:00
|
|
|
- groups
|
2016-12-26 14:21:38 +00:00
|
|
|
- uname -a
|
2017-05-10 20:00:16 +00:00
|
|
|
# List versions
|
2017-05-10 19:53:14 +00:00
|
|
|
- docker version
|
|
|
|
- docker-compose version
|
|
|
|
# Get newer docker version
|
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
|
2017-05-10 20:00:16 +00:00
|
|
|
# Get newer docker-compose version
|
|
|
|
- sudo rm /usr/local/bin/docker-compose
|
|
|
|
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
|
|
|
- chmod +x docker-compose
|
|
|
|
- sudo mv docker-compose /usr/local/bin
|
|
|
|
# List versions again
|
2017-05-10 19:53:14 +00:00
|
|
|
- docker version
|
|
|
|
- docker-compose version
|
2016-11-03 13:48:09 +00:00
|
|
|
|
2016-12-26 02:54:59 +00:00
|
|
|
|
2017-04-19 17:48:44 +00:00
|
|
|
before_script:
|
|
|
|
|
|
|
|
# Disable services enabled by default
|
|
|
|
# http://docs.travis-ci.com/user/database-setup/#MySQL
|
2017-04-19 18:09:42 +00:00
|
|
|
- sudo /etc/init.d/mysql stop || true
|
2017-05-10 20:00:16 +00:00
|
|
|
- sudo /etc/init.d/postgresql stop || true
|
2017-04-19 18:09:42 +00:00
|
|
|
- sudo service mysql stop || true
|
|
|
|
- sudo service postgresql stop || true
|
2017-04-19 17:48:44 +00:00
|
|
|
|
|
|
|
|
2016-11-15 19:45:57 +00:00
|
|
|
###
|
|
|
|
### Test
|
|
|
|
###
|
|
|
|
script:
|
2017-05-10 20:00:16 +00:00
|
|
|
- .tests/test_single.sh . "${SERVER}" "${VERSION}"
|