Skip to content

Commit

Permalink
Merge pull request #29 from sirbrillig/update-ci-tests
Browse files Browse the repository at this point in the history
Update CI tests
  • Loading branch information
sirbrillig authored Feb 9, 2022
2 parents 277611a + 468388c commit 8158560
Show file tree
Hide file tree
Showing 3 changed files with 403 additions and 183 deletions.
41 changes: 9 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,14 @@
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
build_php7.4:
docker:
# specify the version you desire here
- image: circleci/php:7.1-cli-browsers

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mysql:9.4

working_directory: ~/repo

- image: circleci/php:7.4.6
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "composer.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: composer install -n --prefer-dist

- save_cache:
paths:
- ./vendor
key: v1-dependencies-{{ checksum "composer.json" }}

# run tests!
- run: vendor/bin/phpunit
- run: COMPOSER=composer.json composer install
- run: COMPOSER=composer.json composer test
workflows:
version: 2
build_php_versions:
jobs:
- build_php7.4
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"require": {
"php": ">=5.3.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"phpunit/phpunit": "^5.2",
"antecedent/patchwork": "^2.0.0"
Expand All @@ -16,6 +18,9 @@
},
"license": "MIT",
"autoload": {
"classmap": [
"src/"
],
"psr-0": {
"Spies": "src/"
},
Expand Down
Loading

0 comments on commit 8158560

Please sign in to comment.