devilbox/.travis.yml

74 lines
1.5 KiB
YAML
Raw Normal View History

2016-12-26 21:44:04 +01:00
language: bash
dist: trusty
sudo: required
2016-11-03 14:48:09 +01:00
2016-12-26 03:54:59 +01:00
2016-12-26 15:13:46 +01:00
###
2016-12-26 21:44:04 +01:00
### Attach services
2016-11-03 14:48:09 +01:00
###
2016-12-26 21:44:04 +01:00
services:
- docker
2016-11-03 14:48:09 +01:00
###
### Global variables
###
env:
2016-12-26 21:44:04 +01:00
matrix:
2016-12-26 22:10:00 +01:00
# Test httpd
2016-12-26 22:03:21 +01:00
- SERVER=httpd VERSION=apache-2.2
- SERVER=httpd VERSION=apache-2.4
- SERVER=httpd VERSION=nginx-stable
- SERVER=httpd VERSION=nginx-mainline
2016-12-26 23:03:46 +01:00
# Test mysql
- SERVER=mysql VERSION=mysql-5.5
- SERVER=mysql VERSION=mysql-5.6
- SERVER=mysql VERSION=mysql-5.7
2017-04-21 22:25:02 +02:00
- SERVER=mysql VERSION=mysql-8.0
2016-12-26 23:03:46 +01:00
- SERVER=mysql VERSION=mariadb-5.5
- SERVER=mysql VERSION=mariadb-10.0
- SERVER=mysql VERSION=mariadb-10.1
- SERVER=mysql VERSION=mariadb-10.2
# 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
2017-04-19 19:48:44 +02:00
- SERVER=php VERSION=hhvm-latest
2016-12-26 03:54:59 +01:00
2016-11-03 14:48:09 +01:00
2016-11-03 16:06:54 +01:00
###
### Berfore Install
###
before_install:
# List versions
- docker version
- docker-compose version
2016-12-25 14:58:55 +01:00
- whoami
2016-12-25 15:16:11 +01:00
- groups
2016-12-26 15:21:38 +01:00
- uname -a
2016-11-03 14:48:09 +01:00
2016-12-26 03:54:59 +01:00
2017-04-19 19:48:44 +02:00
before_script:
# Disable services enabled by default
# http://docs.travis-ci.com/user/database-setup/#MySQL
2017-04-19 20:09:42 +02: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 19:48:44 +02:00
2016-11-15 20:45:57 +01:00
###
### Test
###
script:
2016-12-26 22:10:00 +01:00
- .tests/test_single.sh . "${SERVER}" "${VERSION}"