devilbox/.travis.yml

87 lines
2.8 KiB
YAML
Raw Normal View History

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:
# 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:
# 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
# List versions
- 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
# 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-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
- 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:
- .tests/test_single.sh . "${SERVER}" "${VERSION}"