Sfoglia il codice sorgente

Added travis build

Edgard 6 anni fa
parent
commit
342c7cae9e
3 ha cambiato i file con 19 aggiunte e 1 eliminazioni
  1. 15 0
      .travis.yml
  2. 3 0
      README.md
  3. 1 1
      inc/provider.class.php

+ 15 - 0
.travis.yml

@@ -0,0 +1,15 @@
+language: php
+
+php:
+   - '5.6'
+
+cache:
+  directories:
+    - $HOME/.composer/cache
+
+before_script:
+  - phpenv config-rm xdebug.ini
+  - composer install --optimize-autoloader
+
+script:
+  - ./vendor/bin/phpcs --colors -p

+ 3 - 0
README.md

@@ -0,0 +1,3 @@
+# Single Sign On for GLPI
+
+[![Build Status](https://travis-ci.org/edgardmessias/glpi-singlesignon.svg?branch=master)](https://travis-ci.org/edgardmessias/glpi-singlesignon)

+ 1 - 1
inc/provider.class.php

@@ -361,7 +361,7 @@ class PluginSinglesignonProvider extends CommonDBTM {
    public static function createInstance($type = 'generic', array $options = array(), array $collaborators = array()) {
 
       if (!isset($options['scope'])) {
-         $options['scope'] = [];
+         $options['scope'] = array();
       }
 
       switch ($type) {