Skip to content

Commit

Permalink
fix test namespace (#16)
Browse files Browse the repository at this point in the history
* fix test namespace

* update circle

* empty

* supported php version

* bump minimum php version

* reinstate rabbitmq
  • Loading branch information
TomK committed Apr 15, 2020
1 parent 63171f5 commit c2f5323
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
57 changes: 48 additions & 9 deletions .circleci/config.yml
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": ">=5.4.0",
"php": ">=7.1.0",
"packaged/config": "~1.1"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion tests/Provider/AmqpTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Packaged\Queue\Tests;
namespace Packaged\Queue\Tests\Provider;

use Packaged\Config\ConfigSectionInterface;
use Packaged\Config\Provider\ConfigSection;
Expand Down

0 comments on commit c2f5323

Please sign in to comment.