Skip to content

Commit

Permalink
Merge branch 'release/2.7.0-beta.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Dec 5, 2018
2 parents 2ba9620 + 5459515 commit b9d0828
Show file tree
Hide file tree
Showing 229 changed files with 22,158 additions and 16,209 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ vendor/
.settings
.buildpath
.project
/.gtm/
31 changes: 18 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ language: php
env:
global:
- GLPI_SOURCE="https://github.com/glpi-project/glpi"
- PHPUNIT_ARGS="--verbose --debug"
- CS=7.2
- DBNAME=glpitest
- OLDDBNAME=glpiupgradetest
- AFTER_SUCCESS_BRANCH=9.3/bugfixes
matrix:
- GLPI_BRANCH=9.2.1
- GLPI_BRANCH=9.2/bugfixes
- GLPI_BRANCH=9.3.0
- GLPI_BRANCH=9.3/bugfixes
- GLPI_BRANCH=master

Expand All @@ -24,18 +25,22 @@ matrix:
- env: GLPI_BRANCH=master

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
- "./tests/before_script.sh"

script:
- vendor/bin/phpunit $PHPUNIT_ARGS
- if [ "${TRAVIS_PHP_VERSION:0:3}" = "$CS" ] && [ "$GLPI_BRANCH" = "$AFTER_SUCCESS_BRANCH" ]; then COVERAGE="--nccfc CommonTreeDropdown CommonDropdown CommonDBTM CommonGLPI"; else COVERAGE="-ncc"; fi
- if [ -e ../../scripts/cliinstall.php ] ; then php ../../scripts/cliinstall.php --db=$OLDDBNAME --user=root --tests ; fi
- if [ -e ../../tools/cliinstall.php ] ; then php ../../tools/cliinstall.php --db=$OLDDBNAME --user=root --tests ; fi
- mysql -u root $OLDDBNAME < tests/plugin_formcreator_empty_2.5.0.sql
- mysql -u root $OLDDBNAME < tests/plugin_formcreator_config_2.5.0.sql
- php scripts/cliinstall.php --tests
- rm ../../tests/config_db.php
- if [ -e ../../scripts/cliinstall.php ] ; then php ../../scripts/cliinstall.php --db=$DBNAME --user=root --tests ; fi
- if [ -e ../../tools/cliinstall.php ] ; then php ../../tools/cliinstall.php --db=$DBNAME --user=root --tests ; fi
- vendor/bin/atoum -ft -bf tests/bootstrap.php -d tests/suite-install -ncc
- vendor/bin/atoum -ft -bf tests/bootstrap.php -d tests/suite-integration $COVERAGE
- vendor/bin/atoum -ft -bf tests/bootstrap.php -d tests/suite-unit $COVERAGE
- vendor/bin/atoum -ft -bf tests/bootstrap.php -d tests/suite-uninstall -ncc
- if [ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ] && [ "$GLPI_BRANCH" = "$AFTER_SUCCESS_BRANCH" ]; then vendor/bin/robo --no-interaction code:cs; fi

cache:
Expand Down
423 changes: 263 additions & 160 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
2 changes: 1 addition & 1 deletion RoboFilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
4 changes: 2 additions & 2 deletions ajax/dropdown_values.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand All @@ -33,7 +33,7 @@

include ('../../../inc/includes.php');

Session::checkRight("entity", UPDATE);
Session::checkRight('entity', UPDATE);

if ($_REQUEST['dropdown_itemtype'] == '0' || !class_exists($_REQUEST['dropdown_itemtype'])) {
Dropdown::showFromArray("dropdown_default_value", [], ['display_emptychoice' => true]);
Expand Down
2 changes: 1 addition & 1 deletion ajax/homepage_forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
2 changes: 1 addition & 1 deletion ajax/homepage_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
2 changes: 1 addition & 1 deletion ajax/homepage_wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
2 changes: 1 addition & 1 deletion ajax/ldap_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
2 changes: 1 addition & 1 deletion ajax/question.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
2 changes: 1 addition & 1 deletion ajax/question_condition.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
2 changes: 1 addition & 1 deletion ajax/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
5 changes: 2 additions & 3 deletions ajax/showfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand All @@ -33,7 +33,6 @@

include ('../../../inc/includes.php');

$currentValues = json_decode(stripslashes($_POST['values']), true);
$visibility = PluginFormcreatorFields::updateVisibility($currentValues);
$visibility = PluginFormcreatorFields::updateVisibility($_POST);
echo json_encode($visibility);
exit();
2 changes: 1 addition & 1 deletion ajax/target.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Thierry Bugier
* @author Jérémy Moreau
* @copyright Copyright © 2011 - 2018 Teclib'
* @license GPLv3+ http://www.gnu.org/licenses/gpl.txt
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
* @link https://github.com/pluginsGLPI/formcreator/
* @link https://pluginsglpi.github.io/formcreator/
* @link http://plugins.glpi-project.org/#/plugin/formcreator
Expand Down
13 changes: 10 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"platform": {
"php": "5.6.0"
},
"optimize-autoloader": true
"optimize-autoloader": true,
"apcu-autoloader": true
},
"require": {
"php": ">= 5.6.0",
Expand All @@ -18,8 +19,14 @@
"require-dev": {
"ext-bz2": "*",
"pear/archive_tar": "^1.4",
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.0",
"atoum/atoum": "^3.3",
"atoum/stubs": "^2.5",
"glpi-project/tools": "^0.1.0",
"glpi-project/coding-standard": "0.5.0"
"glpi-project/coding-standard": "0.7.1"
},
"autoload-dev": {
"psr-4": {
"GlpiPlugin\\Formcreator\\Tests\\": "tests/src/"
}
}
}
Loading

0 comments on commit b9d0828

Please sign in to comment.