Skip to content

Commit

Permalink
circleci: test on PHP 7.2, fixed guzzle version for PHP 7.2 (guzzle/g…
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkulhan committed Dec 11, 2017
1 parent 2b044b8 commit 2c97b78
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 21 deletions.
79 changes: 59 additions & 20 deletions .circleci/config.yml
@@ -1,23 +1,17 @@
version: 2
jobs:
test:

test_7_1:
docker:
- image: circleci/php:7.1-node-browsers
steps:
- checkout
- restore_cache:
keys:
- v2_composer_{{ .Branch }}
#- restore_cache:
# keys:
# - v2_composer_vendor_{{ checksum "~/project/composer.json" }}
- run:
command: |
composer update --prefer-dist --no-progress --classmap-authoritative
#- save_cache:
# key: v2_composer_vendor_{{ checksum "~/project/composer.json" }}
# paths:
# - ~/project/vendor
- save_cache:
key: v2_composer_{{ .Branch }}
paths:
Expand All @@ -28,24 +22,18 @@ jobs:
PHPUNIT_FLAGS="--log-junit /tmp/phpunit/junit.xml" make -e test
- store_test_results:
path: /tmp/phpunit
test_lowest:

test_7_1_lowest:
docker:
- image: circleci/php:7.1-node-browsers
steps:
- checkout
- restore_cache:
keys:
- v2_composer_lowest_{{ .Branch }}
#- restore_cache:
# keys:
# - v2_composer_vendor_lowest_{{ checksum "~/project/composer.json" }}
- run:
command: |
composer update --prefer-dist --no-progress --classmap-authoritative --prefer-lowest
#- save_cache:
# key: v2_composer_vendor_lowest_{{ checksum "~/project/composer.json" }}
# paths:
# - ~/project/vendor
- save_cache:
key: v2_composer_lowest_{{ .Branch }}
paths:
Expand All @@ -56,9 +44,54 @@ jobs:
PHPUNIT_FLAGS="--log-junit /tmp/phpunit/junit.xml" make -e test
- store_test_results:
path: /tmp/phpunit

test_7_2:
docker:
- image: circleci/php:7.2-node-browsers
steps:
- checkout
- restore_cache:
keys:
- v2_composer_{{ .Branch }}
- run:
command: |
composer update --prefer-dist --no-progress --classmap-authoritative
- save_cache:
key: v2_composer_{{ .Branch }}
paths:
- ~/.composer/cache
- run:
command: |
mkdir -p /tmp/phpunit
PHPUNIT_FLAGS="--log-junit /tmp/phpunit/junit.xml" make -e test
- store_test_results:
path: /tmp/phpunit

test_7_2_lowest:
docker:
- image: circleci/php:7.2-node-browsers
steps:
- checkout
- restore_cache:
keys:
- v2_composer_lowest_{{ .Branch }}
- run:
command: |
composer update --prefer-dist --no-progress --classmap-authoritative --prefer-lowest
- save_cache:
key: v2_composer_lowest_{{ .Branch }}
paths:
- ~/.composer/cache
- run:
command: |
mkdir -p /tmp/phpunit
PHPUNIT_FLAGS="--log-junit /tmp/phpunit/junit.xml" make -e test
- store_test_results:
path: /tmp/phpunit

check_protocol:
docker:
- image: circleci/php:7.1-node-browsers
- image: circleci/php:7.2-node-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -70,23 +103,29 @@ jobs:
- run:
command: |
make download-protocol check-protocol
docker_image:
docker:
- image: circleci/php:7.1-node-browsers
- image: circleci/php:7.2-node-browsers
steps:
- checkout
- setup_remote_docker
- run:
command: |
docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
make docker-image
workflows:
version: 2

test:
jobs:
- test
- test_lowest
- test_7_1
- test_7_1_lowest
- test_7_2
- test_7_2_lowest
- check_protocol

nightly:
triggers:
- schedule:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -19,7 +19,7 @@
],
"minimum-stability": "stable",
"require": {
"guzzlehttp/guzzle": "^6.0",
"guzzlehttp/guzzle": "^6.3",
"php": "~7.1",
"symfony/process": ">=3.3",
"wrench/wrench": "^2.0"
Expand Down

0 comments on commit 2c97b78

Please sign in to comment.