forked from GSA/project-open-data-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (26 loc) · 1014 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
38
.PHONY: all build clean down install-dependencies install-dev-dependencies integration-tests test unit-tests up update-dependencies
all: clean build install-dev-dependencies up test
build:
docker-compose build
cloud-test: build install-dev-dependencies up test
clean:
docker-compose down -v --remove-orphans
down:
docker-compose down
test: unit-tests integration-tests
install-dependencies:
bin/composer install --no-dev
install-dev-dependencies:
bin/composer install
integration-tests:
docker-compose exec -T app bats -r tests/
unit-tests: install-dev-dependencies
docker-compose exec -T app composer test
up:
docker-compose up -d
@for i in `seq 1 10`; do docker-compose exec -T app true && exit 0; echo "Waiting for docker ready..."; sleep 2; done; exit 1
@docker-compose exec -T app docker/wait_for_db
docker-compose exec -T app mkdir -p ./uploads && docker-compose exec -T app chmod 777 ./uploads
docker-compose exec -T app chmod 777 ./archive
update-dependencies:
bin/composer update