-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from Codeception/master
Master into 2.1
- Loading branch information
Showing
11 changed files
with
1,772 additions
and
13 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
current_dir := $(dir $(mkfile_path)) | ||
|
||
help: | ||
@echo "Use this makefile to execute your tests in correct php version" | ||
@echo "\tr.php-7.4\t\trun Tests with PHP 7.4" | ||
@echo "\tr.php-8.0\t\trun Tests with PHP 8.0" | ||
@echo "\tr.php-8.1\t\trun Tests with PHP 8.1" | ||
@echo "\tr.php-8.2\t\trun Tests with PHP 8.2" | ||
|
||
r.php-7.4: | ||
docker build -t robo:php-7.4 --target PHP74 --build-arg PHP_VERSION=7.4 docker | ||
docker run --rm -v $(current_dir):/app -w /app robo:php-7.4 composer install | ||
docker run --rm -v $(current_dir):/app -w /app robo:php-7.4 composer test | ||
|
||
r.php-8.0: | ||
docker build -t robo:php-8.0 --target PHP8 --build-arg PHP_VERSION=8.0 docker | ||
docker run --rm -v $(current_dir):/app -w /app robo:php-8.0 composer install | ||
docker run --rm -v $(current_dir):/app -w /app robo:php-8.0 composer test | ||
|
||
r.php-8.1: | ||
docker build -t robo:php-8.1 --target PHP8 --build-arg PHP_VERSION=8.1 docker | ||
docker run --rm -v $(current_dir):/app -w /app robo:php-8.1 composer install | ||
docker run --rm -v $(current_dir):/app -w /app robo:php-8.1 composer test | ||
|
||
r.php-8.2: | ||
docker build -t robo:php-8.2 --target PHP8 --build-arg PHP_VERSION=8.2 docker | ||
docker run --rm -v $(current_dir):/app -w /app robo:php-8.2 composer install | ||
docker run --rm -v $(current_dir):/app -w /app robo:php-8.2 composer test |
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,13 @@ | ||
ARG PHP_VERSION=7.4 | ||
FROM php:${PHP_VERSION}-cli as base | ||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
RUN apt update \ | ||
&& apt upgrade -y \ | ||
&& apt install -y apt-utils libxml2-dev libzip-dev | ||
|
||
FROM base as PHP74 | ||
RUN docker-php-ext-install dom json xml zip | ||
|
||
FROM base as PHP8 | ||
RUN docker-php-ext-install dom xml zip |
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
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
Oops, something went wrong.