pixelfed/.circleci/config.yml

59 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2018-08-28 03:33:39 +00:00
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
docker:
2018-08-28 03:40:30 +00:00
# Specify the version you desire here
2024-07-22 07:32:24 +00:00
- image: cimg/php:8.3.8
2018-08-28 03:40:30 +00:00
2018-08-28 03:33:39 +00:00
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
2018-08-28 03:40:30 +00:00
# Using the RAM variation mitigates I/O contention
# for database intensive operations.
# - image: circleci/mysql:5.7-ram
2019-05-09 19:15:22 +00:00
#
2018-08-28 03:40:30 +00:00
# - image: redis:2.8.19
2018-08-28 03:33:39 +00:00
steps:
- checkout
2024-03-31 22:10:28 +00:00
- run:
name: "Create Environment file and generate app key"
command: |
mv .env.testing .env
- run: sudo apt install zlib1g-dev libsqlite3-dev
2018-08-28 03:40:30 +00:00
2018-08-28 03:33:39 +00:00
# Download and cache dependencies
2018-08-28 03:40:30 +00:00
# composer cache
2018-08-28 03:33:39 +00:00
- restore_cache:
keys:
2018-08-28 03:40:30 +00:00
# "composer.lock" can be used if it is committed to the repo
2023-04-20 05:06:44 +00:00
- v2-dependencies-{{ checksum "composer.json" }}
2018-08-28 03:33:39 +00:00
# fallback to using the latest cache if no exact match is found
2023-04-20 05:06:44 +00:00
- v2-dependencies-
2018-08-28 03:33:39 +00:00
- run: composer install -n --prefer-dist
- save_cache:
2024-03-31 22:10:28 +00:00
key: v2-dependencies-{{ checksum "composer.json" }}
2018-08-28 03:40:30 +00:00
paths:
- vendor
2023-05-07 11:15:29 +00:00
- run: php artisan config:cache
2019-11-11 02:40:22 +00:00
- run: php artisan route:clear
2018-08-28 03:59:28 +00:00
- run: php artisan storage:link
- run: php artisan key:generate
2018-08-28 03:55:47 +00:00
2018-08-28 03:40:30 +00:00
# run tests with phpunit or codecept
2024-03-31 22:10:28 +00:00
- run: php artisan test
2018-08-28 03:40:30 +00:00
- store_test_results:
path: tests/_output
- store_artifacts:
2019-05-09 19:15:22 +00:00
path: tests/_output