Skip to content
Snippets Groups Projects
.travis.yml 8.75 KiB
# This script is used by Travis CI to run automatically Continuous test integration
# from Dolibarr GitHub repository.
# For syntax, see http://about.travis-ci.org/docs/user/languages/php/

sudo: required

language: php

php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- nightly

addons:
  mariadb: '10.0'
  # FIXME: find a way to import a MySQL dump into PostgreSQL
  #postgresql: '9.3'
  apt:
    packages:
    # We need a webserver to test the webservices
    # Let's install Apache with.
    - apache2
    # mod_php is not supported by Travis. Add fcgi. We install FPM later on.
    - libapache2-mod-fastcgi

# Start on every boot
services:
- memcached

env:
  global:
  # Set to true for very verbose output
  - DEBUG=false
  matrix:
  # MariaDB overrides MySQL installation so it's not possible to test both yet
  #- DB=mysql
  - DB=mariadb
  # FIXME: find a way to import a MySQL dump into PostgreSQL
  #- DB=postgresql
  # TODO
  #- DB=sqlite
  # See https://docs.travis-ci.com/user/languages/php/#Apache-%2B-PHP
  #- WS=apache
  # See https://github.com/DracoBlue/travis-ci-nginx-php-fpm-test
  #- WS=nginx

matrix:
  fast_finish: true
  allow_failures:
  - php: '7.0'
  - php: nightly
  # FIXME
  #- env: DB=postgresql
  # TODO
  #- env: DB=sqlite

notifications:
  email:
    on_success: never # [always|never|change] default: change
    on_failure: change # [always|never|change] default: always
  irc:
    channels:
    - "chat.freenode.net#dolibarr"
    on_success: change
    on_failure: always
    use_notice: true