-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
cc4ca98
commit 2bf1389
Showing
10 changed files
with
67 additions
and
194 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 |
---|---|---|
@@ -1,48 +1,30 @@ | ||
version: 2.1 | ||
parameters: &version | ||
version: | ||
type: string | ||
default: "php55" | ||
|
||
commands: | ||
install_composer_dependencies: | ||
parameters: *version | ||
description: Install composer dependencies for << parameters.version >> | ||
steps: | ||
- run: docker-compose run << parameters.version >> composer install | ||
unit_tests: | ||
parameters: *version | ||
description: Run unit tests for << parameters.version >> | ||
steps: | ||
- run: docker-compose run << parameters.version >> ./vendor/bin/phpunit test/unit | ||
performance_tests: | ||
parameters: *version | ||
description: Run performance tests for << parameters.version >> | ||
steps: | ||
- run: docker-compose run << parameters.version >> ./vendor/bin/phpunit test/performance | ||
|
||
jobs: | ||
test: | ||
parameters: *version | ||
machine: | ||
image: ubuntu-2004:202010-01 | ||
parameters: | ||
php_version: | ||
type: string | ||
docker: | ||
- image: talis/tripod-php:<< parameters.php_version >>-latest | ||
environment: | ||
RESQUE_SERVER: redis | ||
- image: mongo:3.2.21 | ||
name: mongodb | ||
- image: redis:6.2.6 | ||
name: redis | ||
steps: | ||
- checkout | ||
- install_composer_dependencies: | ||
version: << parameters.version >> | ||
- unit_tests: | ||
version: << parameters.version >> | ||
- performance_tests: | ||
version: << parameters.version >> | ||
- run: composer install | ||
- run: ./vendor/bin/phpunit test/unit | ||
- run: ./vendor/bin/phpunit test/performance | ||
|
||
workflows: | ||
build_and_test: | ||
jobs: | ||
- test: | ||
matrix: | ||
parameters: | ||
version: | ||
php_version: | ||
- php55 | ||
- php56 | ||
- php70 | ||
- php72 | ||
- php73 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
FROM php:5.5-cli | ||
|
||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
# Debian jessie repositories have been moved to archive | ||
# https://lists.debian.org/debian-devel-announce/2023/02/msg00004.html | ||
RUN rm /etc/apt/sources.list && \ | ||
echo 'deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main' >> /etc/apt/sources.list && \ | ||
echo 'deb [trusted=yes] http://archive.debian.org/debian jessie main' >> /etc/apt/sources.list && \ | ||
echo 'Acquire::Check-Valid-Until "false";' >> /etc/apt/apt.conf | ||
|
||
RUN apt-get update && apt-get install -y git ca-certificates && \ | ||
chmod +x /usr/local/bin/install-php-extensions && \ | ||
install-php-extensions pcntl redis mongodb-1.1.9 && \ | ||
curl https://getcomposer.org/installer > /tmp/composer-setup.php && \ | ||
php /tmp/composer-setup.php --install-dir /usr/local/bin/ --filename composer \ | ||
&& rm /tmp/composer-setup.php | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
unzip \ | ||
zip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=mlocati/php-extension-installer:2.1.58 /usr/bin/install-php-extensions /usr/local/bin/ | ||
RUN install-php-extensions pcntl redis mongodb-1.5.5 && \ | ||
curl https://getcomposer.org/installer >/tmp/composer-setup.php && \ | ||
php /tmp/composer-setup.php --install-dir /usr/local/bin/ --filename composer && \ | ||
rm /tmp/composer-setup.php |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
FROM php:7.3-cli | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
unzip \ | ||
zip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=mlocati/php-extension-installer:2.1.58 /usr/bin/install-php-extensions /usr/local/bin/ | ||
RUN install-php-extensions pcntl redis mongodb-1.5.5 && \ | ||
curl https://getcomposer.org/installer >/tmp/composer-setup.php && \ | ||
php /tmp/composer-setup.php --install-dir /usr/local/bin/ --filename composer && \ | ||
rm /tmp/composer-setup.php |