From 61251fd82656da48925c5a6a9323e14fd7aa663b Mon Sep 17 00:00:00 2001 From: Xacobo Freire <39123808+xacobofg@users.noreply.github.com> Date: Tue, 29 May 2018 11:25:39 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20archivo=20travis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- travis.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 travis.yml diff --git a/travis.yml b/travis.yml new file mode 100644 index 0000000..e9ca936 --- /dev/null +++ b/travis.yml @@ -0,0 +1,40 @@ +language: php + +env: + global: + - GLPI_SOURCE="https://github.com/glpi-project/glpi -b 9.2/bugfixes" + - PHPUNIT_ARGS="--verbose --debug" + - CS=7.2 + matrix: + - GLPI_BRANCH=9.2.1 + - GLPI_BRANCH=9.2/bugfixes + - GLPI_BRANCH=master + +php: + - 5.6 + - 7.0 + - 7.1 + - 7.2 + - nightly + +allow_failures: + - php: nightly + +before_script: + - mysql -u root -e 'create database glpitest;' + - git clone --depth=1 $GLPI_SOURCE -b $GLPI_BRANCH ../glpi && cd ../glpi + - mv ../formcreator plugins/formcreator + - composer install --no-dev + - if [ -e scripts/cliinstall.php ] ; then php scripts/cliinstall.php --db=glpitest --user=root --tests ; fi + - if [ -e tools/cliinstall.php ] ; then php tools/cliinstall.php --db=glpitest --user=root --tests ; fi + - cd plugins/formcreator + - rm composer.lock + - composer install + +script: + - vendor/bin/phpunit $PHPUNIT_ARGS + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ]] ; then vendor/bin/robo --no-interaction code:cs; fi + +cache: + directories: + - $HOME/.composer/cache