-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix test namespace * update circle * empty * supported php version * bump minimum php version * reinstate rabbitmq
- Loading branch information
Showing
3 changed files
with
50 additions
and
11 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,29 +1,68 @@ | ||
defaults: &defaults | ||
working_directory: ~/queue | ||
steps: | ||
- run: sudo docker-php-ext-install bcmath | ||
# common php steps | ||
- run: echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories | ||
- run: if [ -n "$ADD_PACKAGES" ]; then apk -U add $ADD_PACKAGES; fi; | ||
- run: if [ -n "$ADD_MODULES" ]; then docker-php-ext-install $ADD_MODULES; fi; | ||
- run: echo "date.timezone = UTC" >> $(php --ini |grep Scan |awk '{print $NF}')/timezone.ini | ||
- run: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer | ||
|
||
# pre-checkout steps | ||
|
||
# checkout | ||
- checkout | ||
|
||
# post-checkout steps | ||
|
||
# run tests | ||
- run: composer install -n --prefer-dist | ||
- run: php vendor/phpunit/phpunit/phpunit -c phpunit.xml --log-junit /tmp/test-results/phpunit/junit.xml | ||
- store_test_results: | ||
path: /tmp/test-results | ||
|
||
version: 2 | ||
jobs: | ||
build-php56: | ||
build-php71: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/php:5.6 | ||
- image: php:7.1-alpine | ||
environment: | ||
ADD_MODULES: bcmath | ||
- image: rabbitmq:3.6-management | ||
build-php70: | ||
build-php72: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/php:7.0 | ||
- image: php:7.2-alpine | ||
environment: | ||
ADD_MODULES: bcmath | ||
- image: rabbitmq:3.6-management | ||
build-php73: | ||
<<: *defaults | ||
docker: | ||
- image: php:7.3-alpine | ||
environment: | ||
ADD_MODULES: bcmath | ||
- image: rabbitmq:3.6-management | ||
build-php74: | ||
<<: *defaults | ||
docker: | ||
- image: php:7.4-alpine | ||
environment: | ||
ADD_MODULES: bcmath | ||
- image: rabbitmq:3.6-management | ||
build-phpRC: | ||
<<: *defaults | ||
docker: | ||
- image: php:rc-alpine | ||
environment: | ||
ADD_MODULES: bcmath | ||
- image: rabbitmq:3.6-management | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- build-php56 | ||
- build-php70 | ||
- build-php71 | ||
- build-php72 | ||
- build-php73 | ||
- build-php74 | ||
- build-phpRC |
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
} | ||
], | ||
"require": { | ||
"php": ">=5.4.0", | ||
"php": ">=7.1.0", | ||
"packaged/config": "~1.1" | ||
}, | ||
"suggest": { | ||
|
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