Skip to content

Commit

Permalink
CircleCI: Use offical CircleCI PHP orb and next-gen docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Jun 12, 2020
1 parent e6f0afc commit 563ede2
Showing 1 changed file with 6 additions and 45 deletions.
51 changes: 6 additions & 45 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,13 @@
version: 2.1

orbs:
bedrock:
executors:
php-latest:
docker:
- image: 'circleci/php:latest'
php-73:
docker:
- image: 'circleci/php:7.3-stretch'
php-72:
docker:
- image: 'circleci/php:7.2-stretch'
php-71:
docker:
- image: 'circleci/php:7.1-stretch'
jobs:
build-php:
parameters:
executor:
type: executor
executor: << parameters.executor >>
steps:
- run: php -v
- checkout
- restore_cache:
keys:
- composer-v1-{{ checksum "composer.lock" }}
- composer-v1-
- run: composer install -n --prefer-dist
- run: composer test
- save_cache:
key: composer-v1-{{ checksum "composer.lock" }}
paths:
- vendor
php: circleci/php@1

workflows:
build:
jobs:
- bedrock/build-php:
name: build-php-latest
executor: bedrock/php-latest
- bedrock/build-php:
name: build-php-73
executor: bedrock/php-73
- bedrock/build-php:
name: build-php-72
executor: bedrock/php-72
- bedrock/build-php:
name: build-php-71
executor: bedrock/php-71
- php/test:
name: php-<< matrix.version >>
matrix:
parameters:
version: ["7.4", "7.3", "7.2"]

0 comments on commit 563ede2

Please sign in to comment.