Skip to content

Commit

Permalink
[gitlab-ci] player CI
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-jean committed Nov 14, 2024
1 parent 8990b9b commit 80cf86e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ box_image = blackfire/php-internal:8.3-v1.0.50

BOX_BIN=bin/tools/box-$(box_version).phar
PHAR_DIST=bin/blackfire-player.phar

PHP=@docker run --rm -it -e "PHP_CS_FIXER_IGNORE_ENV=1" -u `id -u`:`id -g` -v "$(HOME)/.composer:/.composer" -v "$(HOME)/.phive:/.phive" -v "$(PWD):/app" -e HOME=/ $(php_image)
BASE_PHP=@docker run --rm -e "PHP_CS_FIXER_IGNORE_ENV=1" -u `id -u`:`id -g` -v "$(HOME)/.composer:/.composer" -v "$(HOME)/.phive:/.phive" -v "$(PWD):/app" -e HOME=/ -i
PHP= $(BASE_PHP) $(php_image)
PHP_TTY=$(BASE_PHP) -t $(php_image)
BOX=@docker run --rm -v $(PWD):/app -w /app $(box_image)

##
Expand Down Expand Up @@ -49,7 +50,7 @@ endif
.PHONY: phpstan

shell: ## Starts a shell in container
@$(PHP) bash
@$(PHP_TTY) bash

package-test: build-docker-image $(BOX_BIN) install ## Tests the phar release
@# The box.no-git.json configuration file disables git placeholder, avoiding git calls during packaging
Expand Down

0 comments on commit 80cf86e

Please sign in to comment.