canaltp / nmm-portal-bundle
NmmPortalBundle
此包的规范仓库似乎已不存在,因此该包已被冻结。
1.7.22
2021-09-15 13:07 UTC
Requires
- canaltp/navitia: ~1.2
- canaltp/navitia-profiler-bundle: ~0.0
- canaltp/sam-core-bundle: ^1.6
- symfony/security: ~2.6
- symfony/translation: ~2.6
Requires (Dev)
- phpunit/phpunit: 4.5.*
- squizlabs/php_codesniffer: ^2.0
- dev-master
- 1.7.22
- 1.7.21
- 1.7.20
- 1.7.19
- 1.7.18
- 1.7.17
- 1.7.16
- 1.7.15
- 1.7.14
- 1.7.13
- 1.7.12
- 1.7.11
- 1.7.10
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-task-bot-3109-update-user-github
- dev-fix-bot-2137-update-dependencies
- dev-task-bot-2046-add-jenkinsfile-rebase
- dev-feature-bot-444-dispatch_event_on_customer_delete-v2
- dev-feature-bot-434-remove_client
- dev-oauth-server
This package is not auto-updated.
Last update: 2022-03-30 15:31:57 UTC
README
此包是Navitia Mobility Manager的一部分。它继承了SamCoreBundle并包含以下内容:
- 一些额外的实体(Perimeter, NavitiaEntity, NavitiaToken)
- 客户管理
如何启动测试
要求
- Docker
- 使用以下命令构建镜像和依赖项:
mkdir -p ${HOME}/.config/composer
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml build --no-cache --force-rm --pull nmm-portal-app
rm -f composer.lock
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml run --rm --no-deps nmm-portal-app composer install --no-interaction --prefer-dist
Checkstyle
使用以下命令启动:
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml run --rm --no-deps nmm-portal-app ./vendor/bin/phpcs -n --standard=PSR2 --encoding=utf-8 --extensions=php --ignore=vendor/* --ignore=nmm_portal_functional_test/* --report=checkstyle --report-file=checkstyle-result.xml .
您可以检查结果文件:
cat checkstyle-result.xml
PhpUnit
使用以下命令启动:
rm -rf docs
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml run --rm --no-deps nmm-portal-app ./vendor/bin/phpunit --testsuite=NmmPortal --log-junit=docs/unit/logs/junit.xml --coverage-html=docs/unit/CodeCoverage --coverage-clover=docs/unit/CodeCoverage/coverage.xml
您可以检查结果文件:
cat docs/unit/logs/junit.xml
同时也可以检查覆盖率文件:
- Html:
docs/unit/CodeCoverage/index.html
- Xml:
docs/unit/CodeCoverage/coverage.xml
Behat
对于behat测试,您需要访问NMM仓库。如果没有访问权限,请不要运行这些测试。
使用以下命令启动:
rm -rf nmm_portal_functional_test
git clone git@github.com:CanalTP/NMM.git nmm_portal_functional_test
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml run -e ghprbPullId=${ghprbPullId} -e sha1=$(git rev-parse HEAD) nmm-portal-app
结果文件应该是:nmm_portal_functional_test/behat/nmm_portal.xml
如果出现错误,您可以在以下位置获取一些截图:nmm_portal_functional_test/web/uploads
许可证
此包在GPL-3.0许可证下发布。