-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (35 loc) · 1.06 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
.PHONY: up down shell install test
up:
docker run --rm --detach \
--volume=$(PWD):/src \
--workdir /src \
--name feature-flag-testing-container \
dijtomaszewski/php5.5-cli
down:
docker stop feature-flag-testing-container
shell: up
docker exec -it feature-flag-testing-container bash
install:
@echo "Creating container..."
docker run --rm --detach \
--volume $(PWD):/src \
--workdir /src \
--name feature-flag-testing-container \
dijtomaszewski/php5.5-cli
@echo "Running composer install"
docker exec feature-flag-testing-container composer install
@echo "Stopping and removing container"
docker stop feature-flag-testing-container
@echo "Composer dependencies installed."
test:
@echo "Creating container..."
@docker run --rm --detach \
--volume $(PWD):/src \
--workdir /src \
--name feature-flag-testing-container \
dijtomaszewski/php5.5-cli
@echo "Running tests..."
@docker exec feature-flag-testing-container ./vendor/bin/phpunit
@echo "Stopping and removing container..."
@docker stop feature-flag-testing-container
@echo "done!"