mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-20 05:17:53 +00:00
Merge pull request #43 from cytopia/DVL-008
DVL-008 Travis test all server combinations against each other
This commit is contained in:
commit
b20efd0e1a
@ -289,7 +289,7 @@ enable_docker_mysql() {
|
||||
_docker_version="${1}"
|
||||
run "sed -i'' \"s/#MYSQL_SERVER=${_docker_version}/MYSQL_SERVER=${_docker_version}/g\" \"${DEVILBOX_PATH}/.env\""
|
||||
}
|
||||
enable_docker_postgres() {
|
||||
enable_docker_pgsql() {
|
||||
_docker_version="${1}"
|
||||
run "sed -i'' \"s/#POSTGRES_SERVER=${_docker_version}/POSTGRES_SERVER=${_docker_version}/g\" \"${DEVILBOX_PATH}/.env\""
|
||||
}
|
||||
@ -325,27 +325,95 @@ set_debug_enable() {
|
||||
################################################################################
|
||||
|
||||
devilbox_start() {
|
||||
_new_httpd="$1"
|
||||
_new_mysql="$2"
|
||||
_new_pysql="$3"
|
||||
_new_php="$4"
|
||||
_new_head="$5"
|
||||
_srv1="${1}"
|
||||
_ver1="${2}"
|
||||
_srv2="${3}"
|
||||
_ver2="${4}"
|
||||
|
||||
# Default values for remaining servers
|
||||
_def_php="php-fpm-7.0"
|
||||
_def_httpd="nginx-stable"
|
||||
_def_mysql="mariadb-10.0"
|
||||
_def_pgsql="9.6"
|
||||
|
||||
# Specific enabled servers
|
||||
_set_php=""
|
||||
_set_httpd=""
|
||||
_set_mysql=""
|
||||
_set_pgsql=""
|
||||
|
||||
# Print Headline
|
||||
print_h1 "${_new_head}"
|
||||
print_h1 "${_srv1}-${_ver1} vs ${_srv2}-${_ver2}"
|
||||
|
||||
# Adjust .env
|
||||
comment_all_dockers
|
||||
enable_docker_httpd "${_new_httpd}"
|
||||
enable_docker_mysql "${_new_mysql}"
|
||||
enable_docker_postgres "${_new_pysql}"
|
||||
enable_docker_php "${_new_php}"
|
||||
|
||||
# Enable Type 1
|
||||
if [ "${_srv1}" = "HTTPD" ]; then
|
||||
_set_httpd="${_ver1}"
|
||||
elif [ "${_srv1}" = "MYSQL" ]; then
|
||||
_set_mysql="${_ver1}"
|
||||
elif [ "${_srv1}" = "PGSQL" ]; then
|
||||
_set_pgsql="${_ver1}"
|
||||
elif [ "${_srv1}" = "PHP" ]; then
|
||||
_set_php="${_ver1}"
|
||||
else
|
||||
echo "Invalid server: ${_srv1}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Enable Type 2
|
||||
if [ "${_srv2}" = "HTTPD" ]; then
|
||||
_set_httpd="${_ver2}"
|
||||
elif [ "${_srv2}" = "MYSQL" ]; then
|
||||
_set_mysql="${_ver2}"
|
||||
elif [ "${_srv2}" = "PGSQL" ]; then
|
||||
_set_pgsql="${_ver2}"
|
||||
elif [ "${_srv2}" = "PHP" ]; then
|
||||
_set_php="${_ver2}"
|
||||
else
|
||||
echo "Invalid server: ${_srv2}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Enable remaining onces
|
||||
if [ "${_set_php}" = "" ]; then
|
||||
_set_php="${_def_php}"
|
||||
fi
|
||||
if [ "${_set_httpd}" = "" ]; then
|
||||
_set_httpd="${_def_httpd}"
|
||||
fi
|
||||
if [ "${_set_mysql}" = "" ]; then
|
||||
_set_mysql="${_def_mysql}"
|
||||
fi
|
||||
if [ "${_set_pgsql}" = "" ]; then
|
||||
_set_pgsql="${_def_pgsql}"
|
||||
fi
|
||||
|
||||
# Set versions in .env file
|
||||
enable_docker_php "${_set_php}"
|
||||
enable_docker_httpd "${_set_httpd}"
|
||||
enable_docker_mysql "${_set_mysql}"
|
||||
enable_docker_pgsql "${_set_pgsql}"
|
||||
|
||||
# Show Server settings
|
||||
echo "Enable SERVERs"
|
||||
echo "--------------"
|
||||
grep '^[A-Za-z0-9]*_SERVER' "${DEVILBOX_PATH}/.env" | column -t -s '='
|
||||
echo
|
||||
|
||||
# Show all other settings
|
||||
echo "Enable Settings"
|
||||
echo "---------------"
|
||||
grep -E '^[-_A-Za-z0-9]*=' "${DEVILBOX_PATH}/.env" | grep -v 'SERVER_' | column -t -s '='
|
||||
echo
|
||||
|
||||
|
||||
# Run
|
||||
docker-compose up -d
|
||||
|
||||
# Wait for it to come up
|
||||
wait_for 90 1
|
||||
wait_for 30 1
|
||||
|
||||
# Show log/info
|
||||
docker-compose logs
|
||||
|
@ -1,535 +0,0 @@
|
||||
#!/bin/sh -eu
|
||||
|
||||
if [ "${#}" != "1" ]; then
|
||||
echo "Error: Invalid number of arguments"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "${1}" ]; then
|
||||
echo "Error: Not a directory: ${1}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
###
|
||||
### Get devilbox path and source libs file
|
||||
###
|
||||
DEVILBOX_PATH="$( echo "${1}"| sed 's/\/*$//' )" # remove last slash(es): /
|
||||
|
||||
# Source files
|
||||
. "${DEVILBOX_PATH}/.tests/.lib.sh" "${DEVILBOX_PATH}"
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# B O O T S T R A P
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Reset .env file
|
||||
###
|
||||
reset_env_file
|
||||
|
||||
###
|
||||
### Enable debug mode
|
||||
###
|
||||
set_debug_enable
|
||||
|
||||
###
|
||||
### Alter host ports
|
||||
###
|
||||
set_host_port_httpd "80"
|
||||
set_host_port_mysql "33060"
|
||||
set_host_port_pgsql "54320"
|
||||
|
||||
|
||||
|
||||
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
###
|
||||
### TEST HTTPD
|
||||
###
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# HTTPD 1/4
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.2"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "HTTPD (1/4): ${_httpd}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# HTTPD 2/4
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "HTTPD (2/4): ${_httpd}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# HTTPD 3/4
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="nginx-stable"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "HTTPD (3/4): ${_httpd}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# HTTPD 4/4
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="nginx-mainline"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "HTTPD (4/4): ${_httpd}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
|
||||
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
###
|
||||
### TEST PHP
|
||||
###
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PHP 1/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-5.4"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PHP (1/5): ${_php}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PHP 2/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-5.5"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PHP (2/5): ${_php}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PHP 3/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-5.6"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PHP (3/5): ${_php}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PHP 4/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PHP (4/5): ${_php}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PHP 5/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.1"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PHP (5/5): ${_php}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
|
||||
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
###
|
||||
### TEST PGSQL
|
||||
###
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PgSQL 1/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.2"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PgSQL (1/5): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PgSQL 2/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.3"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PgSQL (2/5): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PgSQL 3/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.4"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PgSQL (3/5): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PgSQL 4/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.5"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PgSQL (4/5): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# PgSQL 5/5
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "PgSQL (5/5): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
###
|
||||
### TEST MYSQL
|
||||
###
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# MySQL 1/7
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mysql-5.5"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "MySQL (1/7): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# MySQL 2/7
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mysql-5.6"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "MySQL (2/7): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# MySQL 3/7
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mysql-5.7"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "MySQL (3/7): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# MySQL 4/7
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-5.5"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "MySQL (4/7): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# MySQL 5/7
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.0"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "MySQL (5/7): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# MySQL 6/7
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.1"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "MySQL (6/7): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# MySQL 7/7
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker versions to use
|
||||
###
|
||||
_httpd="apache-2.4"
|
||||
_mysql="mariadb-10.2"
|
||||
_pysql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pysql}" "${_php}" "MySQL (7/7): ${_mysql}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
@ -9,7 +9,7 @@
|
||||
###
|
||||
### Validate arguments
|
||||
###
|
||||
if [ "${#}" != "3" ]; then
|
||||
if [ "${#}" != "5" ]; then
|
||||
echo "Error: Invalid number of arguments"
|
||||
exit 1
|
||||
fi
|
||||
@ -22,9 +22,11 @@ fi
|
||||
###
|
||||
### Get arguments
|
||||
###
|
||||
DEVILBOX_PATH="$( echo "${1}"| sed 's/\/*$//' )" # remove last slash(es): /
|
||||
DEVILBOX_SERV="${2}" # Server
|
||||
DEVILBOX_VERS="${3}" # Version
|
||||
DVL_PATH="$( echo "${1}"| sed 's/\/*$//' )" # remove last slash(es): /
|
||||
DVL_SRV1="${2}" # Server 1
|
||||
DVL_VER1="${3}" # Version 1
|
||||
DVL_SRV2="${4}" # Server 2
|
||||
DVL_VER2="${5}" # Version 2
|
||||
|
||||
|
||||
|
||||
@ -37,7 +39,7 @@ DEVILBOX_VERS="${3}" # Version
|
||||
###
|
||||
### Source library
|
||||
###
|
||||
. "${DEVILBOX_PATH}/.tests/.lib.sh" "${DEVILBOX_PATH}"
|
||||
. "${DVL_PATH}/.tests/.lib.sh" "${DVL_PATH}"
|
||||
|
||||
###
|
||||
### Reset .env file
|
||||
@ -64,37 +66,7 @@ set_host_port_pgsql "54320"
|
||||
#
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Docker default versions to use
|
||||
###
|
||||
_httpd="nginx-stable"
|
||||
_mysql="mariadb-10.1"
|
||||
_pgsql="9.6"
|
||||
_php="php-fpm-7.0"
|
||||
|
||||
###
|
||||
### Set specific version
|
||||
###
|
||||
if [ "${DEVILBOX_SERV}" = "httpd" ]; then
|
||||
_httpd="${DEVILBOX_VERS}"
|
||||
_head="HTTPD: ${DEVILBOX_VERS}"
|
||||
elif [ "${DEVILBOX_SERV}" = "mysql" ]; then
|
||||
_mysql="${DEVILBOX_VERS}"
|
||||
_head="MYSQL: ${DEVILBOX_VERS}"
|
||||
elif [ "${DEVILBOX_SERV}" = "pgsql" ]; then
|
||||
_pgsql="${DEVILBOX_VERS}"
|
||||
_head="PGSQL: ${DEVILBOX_VERS}"
|
||||
elif [ "${DEVILBOX_SERV}" = "php" ]; then
|
||||
_php="${DEVILBOX_VERS}"
|
||||
_head="PHP: ${DEVILBOX_VERS}"
|
||||
fi
|
||||
|
||||
###
|
||||
### Go
|
||||
###
|
||||
devilbox_start "${_httpd}" "${_mysql}" "${_pgsql}" "${_php}" "${_head}"
|
||||
devilbox_start "${DVL_SRV1}" "${DVL_VER1}" "${DVL_SRV2}" "${DVL_VER2}"
|
||||
debilbox_test
|
||||
devilbox_stop
|
||||
|
||||
|
||||
|
||||
|
176
.travis.yml
176
.travis.yml
@ -1,5 +1,6 @@
|
||||
language: bash
|
||||
dist: trusty
|
||||
###
|
||||
### Enable sudo (required for docker service)
|
||||
###
|
||||
sudo: required
|
||||
|
||||
|
||||
@ -14,36 +15,149 @@ services:
|
||||
### Global variables
|
||||
###
|
||||
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:
|
||||
# Test httpd
|
||||
- SERVER=httpd VERSION=apache-2.2
|
||||
- SERVER=httpd VERSION=apache-2.4
|
||||
- SERVER=httpd VERSION=nginx-stable
|
||||
- SERVER=httpd VERSION=nginx-mainline
|
||||
# Test mysql
|
||||
- SERVER=mysql VERSION=mysql-5.5
|
||||
- SERVER=mysql VERSION=mysql-5.6
|
||||
- SERVER=mysql VERSION=mysql-5.7
|
||||
- SERVER=mysql VERSION=mysql-8.0
|
||||
- SERVER=mysql VERSION=mariadb-5.5
|
||||
- SERVER=mysql VERSION=mariadb-10.0
|
||||
- SERVER=mysql VERSION=mariadb-10.1
|
||||
- SERVER=mysql VERSION=mariadb-10.2
|
||||
- SERVER=mysql VERSION=mariadb-10.3
|
||||
# Test pgsql
|
||||
- SERVER=pgsql VERSION=9.2
|
||||
- SERVER=pgsql VERSION=9.3
|
||||
- SERVER=pgsql VERSION=9.4
|
||||
- SERVER=pgsql VERSION=9.5
|
||||
- SERVER=pgsql VERSION=9.6
|
||||
# Test php
|
||||
- SERVER=php VERSION=php-fpm-5.4
|
||||
- SERVER=php VERSION=php-fpm-5.5
|
||||
- SERVER=php VERSION=php-fpm-5.6
|
||||
- SERVER=php VERSION=php-fpm-7.0
|
||||
- SERVER=php VERSION=php-fpm-7.1
|
||||
- SERVER=php VERSION=hhvm-latest
|
||||
###
|
||||
### 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
|
||||
|
||||
###
|
||||
### 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
|
||||
@ -71,4 +185,4 @@ before_script:
|
||||
### Test
|
||||
###
|
||||
script:
|
||||
- .tests/test_single.sh . "${SERVER}" "${VERSION}"
|
||||
- .tests/test_single.sh . "${SRV1}" "${VER1}" "${SRV2}" "${VER2}"
|
||||
|
Loading…
Reference in New Issue
Block a user