-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add makefile and Dockerfile to be able to install dependencies and run tests * chore: update travis configuration to add a matrix and test with lowest and highest dependencies
- Loading branch information
1 parent
8d9e28f
commit 7af8716
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM php:7.1-alpine | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.DEFAULT_GOAL:help | ||
|
||
RUN?=docker run --rm --interactive --tty --volume ${PWD}:/app woohoolabs-yin-bundle | ||
|
||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m * make %s\033[0m ## %s\n", $$1, $$2}' | ||
|
||
build: ## Build image used to install dependencies and run tests | ||
docker build --tag=woohoolabs-yin-bundle ${PWD} | ||
|
||
install: ## Install dependencies with docker | ||
$(RUN) composer install | ||
|
||
test: ## Run phpspec tests | ||
$(RUN) vendor/bin/phpspec run |