mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
Add external tools for CS, add travis config file
This commit is contained in:
parent
aaab0d8415
commit
0900bde1c9
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
dist/
|
||||||
|
vendor/
|
||||||
|
.gh_token
|
||||||
|
*.min.*
|
||||||
|
|
51
.travis.yml
Normal file
51
.travis.yml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
language: php
|
||||||
|
php:
|
||||||
|
- 5.5
|
||||||
|
- 5.6
|
||||||
|
- 7.0
|
||||||
|
- 7.1
|
||||||
|
- nightly
|
||||||
|
|
||||||
|
#env:
|
||||||
|
# global:
|
||||||
|
# - DB=mysql
|
||||||
|
# matrix:
|
||||||
|
# - GLPIVER=9.1/bugfixes
|
||||||
|
# - GLPIVER=master
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- composer self-update
|
||||||
|
# - 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 tools/cliinstall.php --db=glpi-test --user=travis --tests
|
||||||
|
# - mv ../{LNAME} plugins/{LNAME}
|
||||||
|
# - cd plugins/{LNAME}
|
||||||
|
- composer install -o
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
|
||||||
|
#notifications:
|
||||||
|
# irc:
|
||||||
|
# channels:
|
||||||
|
# - "irc.freenode.org#channel"
|
||||||
|
# on_success: change
|
||||||
|
# on_failure: always
|
||||||
|
# use_notice: true
|
||||||
|
# skip_join: true
|
13
RoboFile.php
Normal file
13
RoboFile.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* This is project's console commands configuration for Robo task runner.
|
||||||
|
*
|
||||||
|
* @see http://robo.li/
|
||||||
|
*/
|
||||||
|
|
||||||
|
require_once 'vendor/autoload.php';
|
||||||
|
|
||||||
|
class RoboFile extends Glpi\Tools\RoboFile
|
||||||
|
{
|
||||||
|
//Own plugin's robo stuff
|
||||||
|
}
|
7
composer.json
Normal file
7
composer.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"prefer-stable": true,
|
||||||
|
"require-dev": {
|
||||||
|
"glpi-project/tools": "^0.1.0"
|
||||||
|
}
|
||||||
|
}
|
1217
composer.lock
generated
Normal file
1217
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user