devilbox/.travis.yml

73 lines
1.5 KiB
YAML
Raw Normal View History

2016-12-26 20:44:04 +00:00
language: bash
dist: trusty
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:
2016-12-26 21:10:00 +00:00
# Test httpd
2016-12-26 21:03:21 +00: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 22:03:46 +00:00
# Test mysql
- SERVER=mysql VERSION=mysql-5.5
- SERVER=mysql VERSION=mysql-5.6
- SERVER=mysql VERSION=mysql-5.7
- 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 17:48:44 +00:00
- SERVER=php VERSION=hhvm-latest
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 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:
2016-12-26 21:10:00 +00:00
- .tests/test_single.sh . "${SERVER}" "${VERSION}"