-
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.
Merge pull request #1 from padosoft/m-jb-test-super-cache-invalidate
prima versione super cache invalidate
- Loading branch information
Showing
18 changed files
with
727 additions
and
641 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,63 +1,66 @@ | ||
# PHP CircleCI 2.0 configuration file | ||
# See: https://circleci.com/docs/2.0/language-php/ | ||
version: 2 | ||
version: 2.1 | ||
|
||
# Define a job to be invoked later in a workflow. | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs | ||
jobs: | ||
build: | ||
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor | ||
executors: | ||
php-executor: | ||
docker: | ||
# Specify the version you desire here | ||
- image: cimg/php:8.2.20-node | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
# documented at https://circleci.com/docs/2.0/circleci-images/ | ||
# Using the RAM variation mitigates I/O contention | ||
# for database intensive operations. | ||
# - image: circleci/mysql:5.7-ram | ||
# | ||
#- image: redis:2.8.19 | ||
- image: cimg/php:<<parameters.php-version>>-browsers | ||
- image: redis:alpine | ||
parameters: | ||
php-version: | ||
type: string | ||
default: "8.0" | ||
working_directory: ~/laravel-super-cache-invalidate | ||
|
||
# Add steps to the job | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#steps | ||
jobs: | ||
test: | ||
parameters: | ||
php-version: | ||
type: string | ||
laravel-version: | ||
type: string | ||
executor: | ||
name: php-executor | ||
php-version: <<parameters.php-version>> | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Redis Extension | ||
command: | | ||
yes 'no' | sudo pecl install -f redis || true | ||
sudo docker-php-ext-enable redis.so | ||
#- run: | ||
# name: Update Composer | ||
# command: sudo composer self-update | ||
- run: | ||
name: Install Dependencies | ||
command: composer install --prefer-dist --no-interaction | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
sudo composer require "laravel/framework:^10.0" --no-update | ||
sudo composer install --prefer-dist --no-interaction | ||
- run: | ||
name: Prepare bootstrap/cache directory | ||
command: mkdir -p ./vendor/orchestra/testbench-core/laravel/bootstrap/cache && chmod -R 777 ./vendor/orchestra/testbench-core/laravel/bootstrap/cache | ||
|
||
- run: sudo apt update -y && sudo apt-get install -y zip unzip # PHP CircleCI 2.0 Configuration File# PHP CircleCI 2.0 Configuration File sudo apt install zlib1g-dev libsqlite3-dev | ||
- run: sudo docker-php-ext-install zip | ||
#- run: sudo install-php-extensions redis | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
# "composer.lock" can be used if it is committed to the repo | ||
- 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 --ignore-platform-req=ext-redis | ||
|
||
- save_cache: | ||
key: v1-dependencies-{{ checksum "composer.json" }} | ||
paths: | ||
- ./vendor | ||
#- restore_cache: | ||
# keys: | ||
# - node-v1-{{ checksum "package.json" }} | ||
# - node-v1- | ||
- run: yarn install | ||
#- save_cache: | ||
# key: node-v1-{{ checksum "package.json" }} | ||
# paths: | ||
# - node_modules | ||
|
||
# prepare the database | ||
#- run: touch storage/testing.sqlite | ||
#- run: php artisan migrate --env=testing --database=sqlite_testing --force | ||
- run: | ||
name: Run Tests | ||
command: | | ||
vendor/bin/phpunit | ||
# run tests with phpunit or codecept | ||
#- run: ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover | ||
- run: ./vendor/bin/phpunit | ||
workflows: | ||
version: 2 | ||
test: | ||
jobs: | ||
- test: | ||
name: PHP 8.2 + Laravel 10 | ||
php-version: "8.2" | ||
laravel-version: "10" | ||
- test: | ||
name: PHP 8.3 + Laravel 10 | ||
php-version: "8.3" | ||
laravel-version: "10" | ||
- test: | ||
name: PHP 8.4 + Laravel 10 | ||
php-version: "8.4" | ||
laravel-version: "10" |
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
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
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
Oops, something went wrong.