File tree Expand file tree Collapse file tree 5 files changed +9
-4
lines changed Expand file tree Collapse file tree 5 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ matrix:
1212 fast_finish : true
1313
1414script :
15- - if [ "$flavour" = "latest" ]; then make build; else make build-alpine; fi
15+ - if [ "$flavour" = "latest" ]; then make build-latest ; else make build-alpine; fi
1616 - docker run -it --rm jakzal/phpqa:$flavour php /usr/local/bin/tools.php test
1717 - docker run -it --rm jakzal/phpqa:$flavour
1818
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends $TOOL_DEPS $BUI
2020 && echo "memory_limit=-1" >> $PHP_INI_DIR/php.ini \
2121 && echo "phar.readonly=0" >> $PHP_INI_DIR/php.ini \
2222 && php /usr/local/bin/tools.php install \
23+ && rm -rf ~/.composer/cache \
2324 && apt-get purge -y --auto-remove $BUILD_DEPS
2425
2526CMD php /usr/local/bin/tools.php list
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .tool-deps $TOOL_DEPS $LIB_DEPS \
2121 && echo "memory_limit=-1" >> $PHP_INI_DIR/php.ini \
2222 && echo "phar.readonly=0" >> $PHP_INI_DIR/php.ini \
2323 && php /usr/local/bin/tools.php install \
24+ && rm -rf ~/.composer/cache \
2425 && apk del .build-deps
2526
2627CMD php /usr/local/bin/tools.php list
Original file line number Diff line number Diff line change 11default : build
22
3- build :
4- docker build -t jakzal/phpqa:latest .
3+ build : build-latest build-alpine
54.PHONY : build
65
6+ build-latest :
7+ docker build -t jakzal/phpqa:latest .
8+ .PHONY : build-latest
9+
710build-alpine :
811 docker build -f Dockerfile-alpine -t jakzal/phpqa:alpine .
912.PHONY : build-alpine
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ phpqa phpstan analyse src
8282``` bash
8383git clone https://github.com/jakzal/phpqa.git
8484cd phpqa
85- make build
85+ make build-latest
8686```
8787
8888To build the alpine version:
You can’t perform that action at this time.
0 commit comments