Skip to content

Commit

Permalink
Revert "Adjusting Travis for actualtime plugin"
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarBeiro authored Jan 28, 2019
1 parent 3d210aa commit e23b103
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1,463 deletions.
5 changes: 0 additions & 5 deletions .gitignore

This file was deleted.

61 changes: 25 additions & 36 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,42 @@
language: php

env:
global:
- GLPI_SOURCE="https://github.com/glpi-project/glpi"
- PHPUNIT_ARGS="--verbose --debug"
- CS=7.2
matrix:
- GLPI_BRANCH=9.2.1
- GLPI_BRANCH=9.2/bugfixes
- GLPI_BRANCH=9.3/bugfixes
- GLPI_BRANCH=master

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.2
- nightly

env:
global:
- DB=mysql
matrix:
- GLPIVER=9.3/bugfixes
- GLPIVER=9.2/bugfixes
- GLPIVER=master
allow_failures:
- php: nightly
- env: GLPI_BRANCH=master

before_script:
- composer self-update
- composer require atoum/atoum
- git clone --depth=1 https://github.com/glpi-project/glpi -b $GLPIVER ../glpi && cd ../glpi
- composer install --no-dev
- mysql -u root -e 'create database glpitest;'
- php scripts/cliinstall.php --db=glpi-test --user=travis --tests
- mv ../actualtime plugins/actualtime
- cd plugins/actualtime
- composer install -o

- git clone --depth=1 $GLPI_SOURCE -b $GLPI_BRANCH ../glpi && cd ../glpi
- 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
- mv ../GDrive plugins/GDrive
- cd plugins/GDrive
- composer install

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


matrix:
# exclude:
# - php: 5.4
# env: GLPIVER=master
allow_failures:
- php: nightly
- vendor/bin/phpunit $PHPUNIT_ARGS
- if [ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ] && [ "$GLPI_BRANCH" = "$AFTER_SUCCESS_BRANCH" ]; then vendor/bin/robo --no-interaction code:cs; fi

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

#notifications:
# irc:
# channels:
# - "irc.freenode.org#channel"
# on_success: change
# on_failure: always
# use_notice: true
# skip_join: true
14 changes: 0 additions & 14 deletions RoboFile.php

This file was deleted.

12 changes: 0 additions & 12 deletions composer.json

This file was deleted.

Loading

0 comments on commit e23b103

Please sign in to comment.