-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 896 Bytes
/
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
studocu:
make up
docker exec -it studocu-cli sh -c "php artisan migrate"
docker exec -it studocu-cli sh -c "php artisan qanda:interactive"
reset-progress:
make up
docker exec -it studocu-cli sh -c "php artisan qanda:reset"
run-tests:
make up-tests
docker exec -it studocu-cli-test sh -c "./vendor/bin/phpunit --testdox"
clean:
make stop
docker rm -f studocu-cli studocu-cli-test studocu-database studocu-database-test || true
docker image rm studocu:cli || true
dev:
docker exec -it studocu-cli-test sh
all:
make run-tests
make studocu
stop:
docker-compose -f docker-compose.test.yaml -f docker-compose.yaml stop
logs:
docker-compose -f docker-compose.test.yaml -f docker-compose.yaml logs -f
up:
docker-compose up -d --remove-orphans
docker exec -it studocu-cli sh -c "composer install"
up-tests:
docker-compose -f docker-compose.test.yaml up -d --remove-orphans