Replace apigen with Sami in CI
- Removed apigen/apigen - Added sami/sami - Generated a configuration and added it in /test/ as config-sami.php - Removed "apidocs" from matrix in .travis.yml Closes: #14345 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
2a34c01863
commit
ffc40cc517
10
.travis.yml
10
.travis.yml
@ -20,7 +20,6 @@ sudo: required
|
||||
env:
|
||||
matrix:
|
||||
- CI_MODE=test
|
||||
- CI_MODE=apidocs
|
||||
global:
|
||||
- TESTSUITE_USER=root
|
||||
- TESTSUITE_URL=http://127.0.0.1:8000
|
||||
@ -65,6 +64,8 @@ matrix:
|
||||
env: CI_MODE=release
|
||||
- php: "7.1"
|
||||
env: CI_MODE=docs
|
||||
- php: "7.1"
|
||||
env: CI_MODE=apidocs
|
||||
- os: osx
|
||||
language: generic
|
||||
env: CI_MODE=test
|
||||
@ -76,14 +77,7 @@ matrix:
|
||||
- curl https://getcomposer.org/installer | php
|
||||
- ln -s "`pwd`/composer.phar" /usr/local/bin/composer
|
||||
- mysql.server start
|
||||
exclude:
|
||||
- php: "7.2"
|
||||
env: CI_MODE=apidocs
|
||||
- php: "nightly"
|
||||
env: CI_MODE=apidocs
|
||||
allow_failures:
|
||||
- php: "7.1"
|
||||
env: CI_MODE=apidocs
|
||||
- php: "nightly"
|
||||
env: CI_MODE=test
|
||||
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
./vendor/bin/apigen generate --destination apidoc --source libraries/
|
||||
./vendor/bin/sami.php --no-interaction update ./test/sami-config.php
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
composer require "apigen/apigen:^4.1"
|
||||
composer require "sami/sami:^4.0"
|
||||
|
||||
22
test/sami-config.php
Normal file
22
test/sami-config.php
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
<?php
|
||||
/**
|
||||
* This file has been generated by phpmyadmin/scripts:/develdocs/build.sh
|
||||
* @see https://github.com/phpmyadmin/scripts/blob/master/develdocs/sami.php
|
||||
* @see https://github.com/phpmyadmin/scripts/blob/master/develdocs/build.sh
|
||||
*/
|
||||
use Sami\Sami;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
|
||||
$iterator = Finder::create()
|
||||
->files()
|
||||
->name("*.php")
|
||||
->in("./libraries")
|
||||
;
|
||||
|
||||
return new Sami($iterator, array(
|
||||
"title" => "MySQL web administration tool",
|
||||
"build_dir" => "./build/apidocs/",
|
||||
"cache_dir" => "./tmp"
|
||||
));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user