This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
53 lines (41 loc) · 2.12 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
RUN_IN_DOCKER=./vendor/bin/run-inside-docker
default:
@echo "--------------------------------------------------------------------------------"
@echo "Development commands"
@echo "--------------------------------------------------------------------------------"
@echo " check-exceptions - Verifies the use of sub classed exceptions"
@echo " check-strict - Checks that all files are within guidelines"
@echo " hack-format - Reformats the hack code into facebook standard"
@echo " hack-restart - Restarts the hhvm instance"
@echo " hack-lint - Verifies the codebase is hack compliant"
@echo " test - Runs tests for the framework, includes"
@echo " third party tests also"
@echo " test-framework - Runs tests for the framework"
@echo " test-phpunit - Runs tests for phpunit"
@echo " test-raw - Runs phpunit.phar instead of our phpunit"
@echo "--------------------------------------------------------------------------------"
hack-restart:
time $(RUN_IN_DOCKER) ./vendor/bin/hhvm-restart-wrapper
hack-lint:
time $(RUN_IN_DOCKER) hh_client --lint
hack-format:
find ./include -type f -exec hh_format -i {} \;
check-strict:
#./bin/check-hack-strict
echo 'check-strict: disabled for now'
check-exceptions:
ack 'use \\Exception' include/ | grep -v 'Test.hh'
ack 'new Exception' include/ | grep -v 'Test.hh'
test: hack-restart hack-lint check-strict test-single-canary test-all
echo "DONE"
test-single-canary:
time ./vendor/bin/run-single-test ./src/Zynga/Framework/ELO/V1/Chess/MatchTest.hh
test-all:
chmod -R 0755 tmp/Disk-IO-ManagerTest ; rm -rf tmp/Disk-IO-ManagerTest
time ./vendor/bin/phpunit --testsuite framework-tests,phpunit-tests
test-framework:
time ./vendor/bin/phpunit --testsuite framework-tests
test-phpunit:
time ./vendor/bin/phpunit --testsuite phpunit-tests
test-xdebug: hack-restart hack-lint check-strict
time ./vendor/bin/phpunit-xdebug --testsuite tests