forked from braintree/braintree_php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (15 loc) · 763 Bytes
/
Makefile
File metadata and controls
18 lines (15 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.PHONY: console build
console: build
docker run -it --user="$(shell id -u):$(shell id -g)" -e HOME=/tmp \
-v="$(PWD):/braintree-php" --net="host" braintree-php /bin/bash -c "\
curl -sS https://getcomposer.org/installer | php -d suhosin.executor.include.whitelist=phar && \
php -d suhosin.executor.include.whitelist=phar ./composer.phar install; \
bash"
build:
docker build -t braintree-php -f Dockerfile .
lint: build
docker run -i --user="$(shell id -u):$(shell id -g)" -e HOME=/tmp \
-v="$(PWD):/braintree-php" --net="host" braintree-php /bin/bash -l -c "\
curl -sS https://getcomposer.org/installer | php -d suhosin.executor.include.whitelist=phar && \
php -d suhosin.executor.include.whitelist=phar ./composer.phar install; \
rake lint"