Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
Fix mysql missing
  • Loading branch information
OscarBeiro authored and xacobofg committed Sep 25, 2019
1 parent 137ee72 commit 94e1059
Showing 1 changed file with 35 additions and 25 deletions.
60 changes: 35 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
language: php

sudo: required

services:
- mysql

env:
global:
- GLPI_SOURCE="https://github.com/glpi-project/glpi"
- CS=7.2
- DBUSER=root
- DBNAME=glpitest
- OLDDBNAME=glpiupgradetest
- AFTER_SUCCESS_BRANCH=9.4/bugfixes
matrix:
- GLPI_BRANCH=9.3.0
- GLPI_BRANCH=9.3/bugfixes
- GLPI_BRANCH=9.4/bugfixes
- GLPI_BRANCH=9.5/bugfixes
# - GLPI_BRANCH=master

php:
# - 5.6
- 7.0
Expand All @@ -7,16 +28,18 @@ php:
- 7.3
- 7.4
- nightly

env:
global:
- DB=mysql
matrix:
- GLPIVER=9.5/bugfixes
- GLPIVER=9.4/bugfixes
# - GLPIVER=9.3/bugfixes
# - GLPIVER=master


# Permit failure on PHP nightly until Travis fix missing gd extension
matrix:
exclude:
# - php: 5.6
# env: GLPIVER=master
# - php: 5.6
# env: GLPIVER=9.4/bugfixes
allow_failures:
- php: 7.4
- php: nightly

before_script:
- composer self-update
- composer require --dev atoum/atoum
Expand All @@ -28,28 +51,15 @@ before_script:
- mysql -u root -e 'create database glpitest;'
# Both 9.3 and 9.4:
- if [[ -f "scripts/cliinstall.php" ]]; then php scripts/cliinstall.php --db=glpitest --user=root --tests; else bin/console glpi:database:install --config-dir=./tests --no-interaction --db-name=glpitest --db-user=root; fi
- mv ../actualtime plugins/actualtime
- cd plugins/actualtime
- mv ../gappessentials plugins/gappessentials
- cd plugins/gappessentials
- composer install -o


script:
- vendor/bin/robo --no-interaction code:cs
- mysql -u root -e 'select version();'
- ./vendor/bin/atoum --debug -bf tests/bootstrap.php -d tests/units/


# Permit failure on PHP nightly until Travis fix missing gd extension
matrix:
exclude:
# - php: 5.6
# env: GLPIVER=master
# - php: 5.6
# env: GLPIVER=9.4/bugfixes
allow_failures:
- php: 7.4
- php: nightly

cache:
directories:
- $HOME/.composer/cache
Expand Down

0 comments on commit 94e1059

Please sign in to comment.