-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·78 lines (50 loc) · 1.43 KB
/
Makefile
File metadata and controls
executable file
·78 lines (50 loc) · 1.43 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# composer and install
install: setup setup-js create-env autoload
setup:
composer install
setup-js:
cd public/assets/ && npm install
update:
composer update
autoload:
composer dump-autoload -o
create-env:
cd config/ && cp -n .env.example .env || :
create-db:
mysql -e 'CREATE DATABASE IF NOT EXISTS testing;'
cd db/ && mysql -u root testing < db.sql && \
mysql -u root testing < cats.sql && \
mysql -u root testing < qtypes.sql && \
mysql -u root testing < qcats.sql && \
mysql -u root testing < quizes.sql && \
mysql -u root testing < questions.sql
# test
start-server:
./vendor/php-kit/php-server/bin/php-server start -p 8001 -r public/ --global || :
stop-server:
./vendor/php-kit/php-server/bin/php-server stop -p 8001
codecept:
./vendor/codeception/codeception/codecept run acceptance --debug
test: start-server codecept stop-server
lint:
./vendor/bin/phpcs ./* --ignore=vendor/,tests/ --extensions=php --colors --standard=PSR1 -v
# npm and webpack
deploy:
cd public/assets/ && npm run deploy
watch:
cd public/assets/ && npm run watch
# test js
test-js:
cd public/assets/ && npm run test
lint-js:
cd public/assets/ && npm run lint
# update local repo
remote-upstream:
git remote add upstream https://github.com/geektesting/testing.git
git remote -v
merge-upstream:
git fetch upstream
git checkout master
git merge upstream/master
get-last-changes: merge-upstream setup autoload
.PHONY: test