mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-23 22:52:22 +00:00
REL-0.9 travis with newer docker-compose version
This commit is contained in:
parent
9794cbde3c
commit
d8209ef111
189
.travis.yml
189
.travis.yml
@ -1,6 +1,5 @@
|
|||||||
###
|
language: bash
|
||||||
### Enable sudo (required for docker service)
|
dist: trusty
|
||||||
###
|
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
|
||||||
@ -15,165 +14,57 @@ services:
|
|||||||
### Global variables
|
### Global variables
|
||||||
###
|
###
|
||||||
env:
|
env:
|
||||||
###
|
|
||||||
### The matrix specifies 2 versions to compare against each other.
|
|
||||||
### As PHP (any versoin) needs to be able to run with everything,
|
|
||||||
### I am going to test any PHP version against any other service.
|
|
||||||
###
|
|
||||||
matrix:
|
matrix:
|
||||||
###
|
# Test httpd
|
||||||
### PHP vs WWW
|
- SERVER=httpd VERSION=apache-2.2 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
###
|
- SERVER=httpd VERSION=apache-2.4 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
# PHP vs Apache 2.2
|
- SERVER=httpd VERSION=nginx-stable DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=HTTPD VER2=apache-2.2
|
- SERVER=httpd VERSION=nginx-mainline DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=HTTPD VER2=apache-2.2
|
# Test mysql
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=HTTPD VER2=apache-2.2
|
- SERVER=mysql VERSION=mysql-5.5 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=HTTPD VER2=apache-2.2
|
- SERVER=mysql VERSION=mysql-5.6 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=HTTPD VER2=apache-2.2
|
- SERVER=mysql VERSION=mysql-5.7 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=HTTPD VER2=apache-2.2
|
- SERVER=mysql VERSION=mysql-8.0 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
# PHP vs Apache 2.4
|
- SERVER=mysql VERSION=mariadb-5.5 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=HTTPD VER2=apache-2.4
|
- SERVER=mysql VERSION=mariadb-10.0 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=HTTPD VER2=apache-2.4
|
- SERVER=mysql VERSION=mariadb-10.1 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=HTTPD VER2=apache-2.4
|
- SERVER=mysql VERSION=mariadb-10.2 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=HTTPD VER2=apache-2.4
|
- SERVER=mysql VERSION=mariadb-10.3 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=HTTPD VER2=apache-2.4
|
# Test pgsql
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=HTTPD VER2=apache-2.4
|
- SERVER=pgsql VERSION=9.2 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
# PHP vs Nginx stable
|
- SERVER=pgsql VERSION=9.3 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=HTTPD VER2=nginx-stable
|
- SERVER=pgsql VERSION=9.4 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=HTTPD VER2=nginx-stable
|
- SERVER=pgsql VERSION=9.5 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=HTTPD VER2=nginx-stable
|
- SERVER=pgsql VERSION=9.6 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=HTTPD VER2=nginx-stable
|
# Test php
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=HTTPD VER2=nginx-stable
|
- SERVER=php VERSION=php-fpm-5.4 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=HTTPD VER2=nginx-stable
|
- SERVER=php VERSION=php-fpm-5.5 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
# PHP vs Nginx mainline
|
- SERVER=php VERSION=php-fpm-5.6 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=HTTPD VER2=nginx-mainline
|
- SERVER=php VERSION=php-fpm-7.0 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=HTTPD VER2=nginx-mainline
|
- SERVER=php VERSION=php-fpm-7.1 DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=HTTPD VER2=nginx-mainline
|
- SERVER=php VERSION=hhvm-latest DOCKER_COMPOSE_VERSION=1.13.0
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=HTTPD VER2=nginx-mainline
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=HTTPD VER2=nginx-mainline
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=HTTPD VER2=nginx-mainline
|
|
||||||
|
|
||||||
###
|
|
||||||
### PHP vs MYSQL
|
|
||||||
###
|
|
||||||
# PHP vs MySQL 5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mysql-5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mysql-5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mysql-5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mysql-5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mysql-5.5
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mysql-5.5
|
|
||||||
# PHP vs MySQL 5.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mysql-5.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mysql-5.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mysql-5.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mysql-5.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mysql-5.6
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mysql-5.6
|
|
||||||
# PHP vs MySQL 5.7
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mysql-5.7
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mysql-5.7
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mysql-5.7
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mysql-5.7
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mysql-5.7
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mysql-5.7
|
|
||||||
# PHP vs MySQL 8.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mysql-8.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mysql-8.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mysql-8.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mysql-8.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mysql-8.0
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mysql-8.0
|
|
||||||
# PHP vs MariaDB 5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mariadb-5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mariadb-5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mariadb-5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mariadb-5.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mariadb-5.5
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mariadb-5.5
|
|
||||||
# PHP vs MariaDB 10.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mariadb-10.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mariadb-10.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mariadb-10.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mariadb-10.0
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mariadb-10.0
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mariadb-10.0
|
|
||||||
# PHP vs MariaDB 10.1
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mariadb-10.1
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mariadb-10.1
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mariadb-10.1
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mariadb-10.1
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mariadb-10.1
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mariadb-10.1
|
|
||||||
# PHP vs MariaDB 10.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mariadb-10.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mariadb-10.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mariadb-10.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mariadb-10.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mariadb-10.2
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mariadb-10.2
|
|
||||||
# PHP vs MariaDB 10.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=MYSQL VER2=mariadb-10.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=MYSQL VER2=mariadb-10.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=MYSQL VER2=mariadb-10.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=MYSQL VER2=mariadb-10.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=MYSQL VER2=mariadb-10.3
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=MYSQL VER2=mariadb-10.3
|
|
||||||
|
|
||||||
###
|
|
||||||
### PHP vs PostgreSQL
|
|
||||||
###
|
|
||||||
# PHP vs PgSQL 9.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=PGSQL VER2=9.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=PGSQL VER2=9.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=PGSQL VER2=9.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=PGSQL VER2=9.2
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=PGSQL VER2=9.2
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=PGSQL VER2=9.2
|
|
||||||
# PHP vs PgSQL 9.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=PGSQL VER2=9.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=PGSQL VER2=9.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=PGSQL VER2=9.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=PGSQL VER2=9.3
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=PGSQL VER2=9.3
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=PGSQL VER2=9.3
|
|
||||||
# PHP vs PgSQL 9.4
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=PGSQL VER2=9.4
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=PGSQL VER2=9.4
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=PGSQL VER2=9.4
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=PGSQL VER2=9.4
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=PGSQL VER2=9.4
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=PGSQL VER2=9.4
|
|
||||||
# PHP vs PgSQL 9.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=PGSQL VER2=9.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=PGSQL VER2=9.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=PGSQL VER2=9.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=PGSQL VER2=9.5
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=PGSQL VER2=9.5
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=PGSQL VER2=9.5
|
|
||||||
# PHP vs PgSQL 9.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.4 SRV2=PGSQL VER2=9.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.5 SRV2=PGSQL VER2=9.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-5.6 SRV2=PGSQL VER2=9.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.0 SRV2=PGSQL VER2=9.6
|
|
||||||
- SRV1=PHP VER1=php-fpm-7.1 SRV2=PGSQL VER2=9.6
|
|
||||||
- SRV1=PHP VER1=hhvm-latest SRV2=PGSQL VER2=9.6
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Berfore Install
|
### Berfore Install
|
||||||
###
|
###
|
||||||
before_install:
|
before_install:
|
||||||
# List versions
|
# List info
|
||||||
- docker version
|
|
||||||
- docker-compose version
|
|
||||||
- whoami
|
- whoami
|
||||||
- groups
|
- groups
|
||||||
- uname -a
|
- uname -a
|
||||||
|
# List versions
|
||||||
- docker version
|
- docker version
|
||||||
- docker-compose version
|
- docker-compose version
|
||||||
# Get newer docker version
|
# Get newer docker version
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
|
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
|
||||||
|
# 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
|
||||||
- docker version
|
- docker version
|
||||||
- docker-compose version
|
- docker-compose version
|
||||||
|
|
||||||
@ -183,7 +74,7 @@ before_script:
|
|||||||
# Disable services enabled by default
|
# Disable services enabled by default
|
||||||
# http://docs.travis-ci.com/user/database-setup/#MySQL
|
# http://docs.travis-ci.com/user/database-setup/#MySQL
|
||||||
- sudo /etc/init.d/mysql stop || true
|
- sudo /etc/init.d/mysql stop || true
|
||||||
- sudo /etc/init.d/postgresql stopA || true
|
- sudo /etc/init.d/postgresql stop || true
|
||||||
- sudo service mysql stop || true
|
- sudo service mysql stop || true
|
||||||
- sudo service postgresql stop || true
|
- sudo service postgresql stop || true
|
||||||
|
|
||||||
@ -192,4 +83,4 @@ before_script:
|
|||||||
### Test
|
### Test
|
||||||
###
|
###
|
||||||
script:
|
script:
|
||||||
- .tests/test_single.sh . "${SRV1}" "${VER1}" "${SRV2}" "${VER2}"
|
- .tests/test_single.sh . "${SERVER}" "${VERSION}"
|
||||||
|
Loading…
Reference in New Issue
Block a user