2017-04-22 16:59:19 +00:00
|
|
|
###
|
|
|
|
### Enable sudo (required for docker service)
|
|
|
|
###
|
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:
|
2017-04-22 10:35:13 +00:00
|
|
|
###
|
|
|
|
### 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.
|
|
|
|
###
|
2016-12-26 20:44:04 +00:00
|
|
|
matrix:
|
2017-04-22 10:35:13 +00:00
|
|
|
###
|
|
|
|
### PHP vs WWW
|
|
|
|
###
|
|
|
|
# PHP vs Apache 2.2
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.4 SRV2=HTTPD VER2=apache-2.2
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.5 SRV2=HTTPD VER2=apache-2.2
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.6 SRV2=HTTPD VER2=apache-2.2
|
|
|
|
- SRV1=PHP VER1=php-fpm-7.0 SRV2=HTTPD VER2=apache-2.2
|
|
|
|
- SRV1=PHP VER1=php-fpm-7.1 SRV2=HTTPD VER2=apache-2.2
|
|
|
|
- SRV1=PHP VER1=hhvm-latest SRV2=HTTPD VER2=apache-2.2
|
|
|
|
# PHP vs Apache 2.4
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.4 SRV2=HTTPD VER2=apache-2.4
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.5 SRV2=HTTPD VER2=apache-2.4
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.6 SRV2=HTTPD VER2=apache-2.4
|
|
|
|
- SRV1=PHP VER1=php-fpm-7.0 SRV2=HTTPD VER2=apache-2.4
|
|
|
|
- SRV1=PHP VER1=php-fpm-7.1 SRV2=HTTPD VER2=apache-2.4
|
|
|
|
- SRV1=PHP VER1=hhvm-latest SRV2=HTTPD VER2=apache-2.4
|
|
|
|
# PHP vs Nginx stable
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.4 SRV2=HTTPD VER2=nginx-stable
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.5 SRV2=HTTPD VER2=nginx-stable
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.6 SRV2=HTTPD VER2=nginx-stable
|
|
|
|
- SRV1=PHP VER1=php-fpm-7.0 SRV2=HTTPD VER2=nginx-stable
|
|
|
|
- SRV1=PHP VER1=php-fpm-7.1 SRV2=HTTPD VER2=nginx-stable
|
|
|
|
- SRV1=PHP VER1=hhvm-latest SRV2=HTTPD VER2=nginx-stable
|
|
|
|
# PHP vs Nginx mainline
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.4 SRV2=HTTPD VER2=nginx-mainline
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.5 SRV2=HTTPD VER2=nginx-mainline
|
|
|
|
- SRV1=PHP VER1=php-fpm-5.6 SRV2=HTTPD VER2=nginx-mainline
|
|
|
|
- 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
|
2016-12-26 02:54:59 +00:00
|
|
|
|
2017-04-22 10:35:13 +00:00
|
|
|
###
|
|
|
|
### 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
|
2016-11-03 13:48:09 +00:00
|
|
|
|
2016-11-03 15:06:54 +00:00
|
|
|
###
|
|
|
|
### Berfore Install
|
|
|
|
###
|
|
|
|
before_install:
|
|
|
|
# List versions
|
|
|
|
- docker version
|
|
|
|
- docker-compose version
|
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
|
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
|
|
|
|
- sudo /etc/init.d/postgresql stopA || true
|
|
|
|
- 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-04-22 10:35:13 +00:00
|
|
|
- .tests/test_single.sh . "${SRV1}" "${VER1}" "${SRV2}" "${VER2}"
|