diff options
author | William Desportes <williamdes@wdes.fr> | 2018-06-03 16:54:48 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2018-06-03 19:20:05 +0300 |
commit | ffc40cc5176e9b652af0a808490e9a3d4a723b05 (patch) | |
tree | 56d539335c3c346162d29891fefbae7e47baa196 /test | |
parent | 2a34c018633764ab0149d453dd2c8bfc8e79396f (diff) |
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>
Diffstat (limited to 'test')
-rwxr-xr-x | test/ci-apidocs | 2 | ||||
-rwxr-xr-x | test/ci-install-apidocs | 2 | ||||
-rw-r--r-- | test/sami-config.php | 22 |
3 files changed, 24 insertions, 2 deletions
diff --git a/test/ci-apidocs b/test/ci-apidocs index 8c94f17ffd..5b550361f2 100755 --- a/test/ci-apidocs +++ b/test/ci-apidocs @@ -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 diff --git a/test/ci-install-apidocs b/test/ci-install-apidocs index 449e54b75c..797211874a 100755 --- a/test/ci-install-apidocs +++ b/test/ci-install-apidocs @@ -1,3 +1,3 @@ #!/bin/sh set -e -composer require "apigen/apigen:^4.1" +composer require "sami/sami:^4.0" diff --git a/test/sami-config.php b/test/sami-config.php new file mode 100644 index 0000000000..47c9a992a9 --- /dev/null +++ b/test/sami-config.php @@ -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" +)); + |