forked from ucloud/ucloud-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (46 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
install:
composer install
lint:
php vendor/bin/phpcs --ignore=./src/Core/Logger/compatibility/*.php -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 --ignore=./src/Core/Logger/compatibility/*.php 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 .