Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(tests): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 9, 2017
1 parent b57ac54 commit a69a493
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 3,223 deletions.
22 changes: 7 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
language: php

php:
- '5.6'
- '7.0'
- 5.6
- 7.0

env:
global:
- FUSION_SOURCE="https://github.com/fusioninventory/fusioninventory-for-glpi -b glpi9.1+1.1"
matrix:
- GLPI_SOURCE="https://github.com/flyve-mdm/glpi -b 9.1.2-backport"
- GLPI_SOURCE="https://github.com/glpi-project/glpi -b master"
- GLPI_SOURCE="https://github.com/flyve-mdm/glpi -b 9.1.2-backport" FUSION_SOURCE="https://github.com/fusioninventory/fusioninventory-for-glpi -b glpi9.1+1.1"
- GLPI_SOURCE="https://github.com/glpi-project/glpi -b master" FUSION_SOURCE="https://github.com/fusioninventory/fusioninventory-for-glpi -b master"

before_script:
- git clone --depth=50 $GLPI_SOURCE ../glpi && cd ../glpi
- git clone --depth=1 $GLPI_SOURCE ../glpi && cd ../glpi
- composer install --no-dev
- php tools/cliinstall.php --db=glpi-test --user=travis --tests
- mkdir plugins/fusioninventory && git clone --depth=50 $FUSION_SOURCE plugins/fusioninventory
- mkdir plugins/fusioninventory && git clone --depth=1 $FUSION_SOURCE plugins/fusioninventory
- mv ../flyve-mdm-glpi plugins/flyvemdm
- cd plugins/flyvemdm && composer install
- cd ../..
- cd plugins/fusioninventory
- git apply --check ../flyvemdm/tests/patches/fi_version-check.patch && git apply ../flyvemdm/tests/patches/fi_version-check.patch
- cd ../..
- cd plugins/flyvemdm && composer install -o

script:
- cd plugins/flyvemdm
- php -S localhost:8088 -t ../.. ../../tests/router.php &>/dev/null &
- vendor/bin/phpunit --verbose
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs -p --standard=vendor/glpi-project/coding-standard/GlpiStandard/ *.php install/ inc/ front/ ajax/ tests/; fi

Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"minimum-stability": "dev",
"prefer-stable": true,
"title": "Flyve MDM",
"description": "Flyve MDM plugin for GLPI",
"type": "project",
Expand All @@ -21,7 +23,7 @@
"glpi-project/coding-standard": "^0.5.0",
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.0",
"flyve-mdm/test": "dev-master",
"consolidation/robo": "dev-master",
"consolidation/robo": "^1.0",
"glpi-project/tools": "^0.1.2"
},
"repositories": [
Expand Down
Loading

0 comments on commit a69a493

Please sign in to comment.