zx/vendor/ucloud/ucloud-sdk-php/Makefile

55 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2024-07-02 15:32:59 +08:00
install:
composer install
lint:
php vendor/bin/phpcs -n
compatible:
php vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility
php vendor/bin/phpcs --config-set testVersion 5.6
php vendor/bin/phpcs -p --standard=PHPCompatibility src
fmt:
php vendor/bin/phpcbf
build:
composer dump-autoload
test:
php vendor/bin/phpunit tests/*
test-cov:
UCLOUD_PUBLIC_KEY=foo UCLOUD_PRIVATE_KEY=bar UCLOUD_PROJECT_ID=oas \
XDEBUG_MODE=coverage php vendor/bin/phpunit --testsuite=unit --coverage-html=build/coverage
cov-show:
open build/coverage/index.html
gen:
ucloud-spec create opensdk \
--only "UFS" \
--only "UDisk" \
--only "UHost" \
--only "PathX" \
--only "UDDB" \
--only "UCDN" \
--only "UNet" \
--only "VPC2.0" \
--only "UDB" \
--only "UMem" \
--only "ULB" \
--only "Cube" \
--only "UK8S" \
--only "IPSecVPN" \
--only "UAccount" \
--only "UDPN" \
--only "UBill" \
--only "UPHost" \
--only "UFile" \
--only "USMS" \
--only "UEC" \
--only "UPhone" \
--public \
-s $(HOME)/.oas/vcs/git.ucloudadmin.com/apispec/apispec/specification \
$(HOME)/.oas/vcs/git.ucloudadmin.com/apispec/template-opensdk-php .