2022-02-12 09:34:36 -06:00
|
|
|
---
|
2020-11-19 14:23:43 +01:00
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
2022-02-12 15:34:18 -06:00
|
|
|
name: CI build
|
2020-11-19 14:23:43 +01:00
|
|
|
|
|
|
|
|
steps:
|
2020-11-21 22:45:50 +01:00
|
|
|
- name: restore-cache
|
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
|
volumes:
|
|
|
|
|
- name: cache
|
|
|
|
|
path: /cache
|
|
|
|
|
settings:
|
|
|
|
|
restore: true
|
|
|
|
|
mount:
|
2023-03-09 11:10:09 +07:00
|
|
|
- ./vendor/cache
|
2020-12-03 14:56:11 +01:00
|
|
|
when:
|
|
|
|
|
branch:
|
|
|
|
|
- master
|
2020-11-19 14:23:43 +01:00
|
|
|
- name: rspec
|
2022-12-06 10:19:47 +01:00
|
|
|
image: guildeducation/rails:2.7.2-14.20.0
|
2022-02-12 14:53:23 -06:00
|
|
|
environment:
|
|
|
|
|
RAILS_ENV: test
|
2023-07-04 16:44:11 +02:00
|
|
|
REDIS_URL: redis://redis:6379/0
|
2020-11-19 14:23:43 +01:00
|
|
|
commands:
|
2022-02-16 09:25:47 -06:00
|
|
|
- bundle config unset deployment
|
|
|
|
|
- bundle config set cache_all 'true'
|
|
|
|
|
- bundle config set cache_path 'vendor/cache'
|
2022-02-12 15:09:19 -06:00
|
|
|
- bundle config set with 'development test'
|
|
|
|
|
- bundle install --jobs=3 --retry=3
|
2020-11-19 14:23:43 +01:00
|
|
|
- yarn install
|
2022-02-12 15:29:04 -06:00
|
|
|
- rake css:build
|
2023-02-14 12:55:03 +08:00
|
|
|
- bundle exec rspec
|
2020-11-21 22:45:50 +01:00
|
|
|
- name: rebuild-cache
|
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
|
volumes:
|
|
|
|
|
- name: cache
|
|
|
|
|
path: /cache
|
|
|
|
|
settings:
|
|
|
|
|
rebuild: true
|
|
|
|
|
mount:
|
2023-03-09 11:10:09 +07:00
|
|
|
- ./vendor/cache
|
2020-12-03 14:56:11 +01:00
|
|
|
when:
|
|
|
|
|
branch:
|
|
|
|
|
- master
|
2020-11-21 22:45:50 +01:00
|
|
|
|
2023-06-27 15:07:28 +02:00
|
|
|
services:
|
|
|
|
|
- name: redis
|
|
|
|
|
image: redis
|
|
|
|
|
|
2020-11-21 22:45:50 +01:00
|
|
|
volumes:
|
|
|
|
|
- name: cache
|
|
|
|
|
host:
|
|
|
|
|
path: /var/lib/drone/tmp
|
2022-02-12 09:34:36 -06:00
|
|
|
---
|
|
|
|
|
kind: signature
|
|
|
|
|
hmac: f9a8cf97f6596625721365f6238f6f298aa5a7a4de10c3fb61c57202ae9d1ee1
|
|
|
|
|
|
|
|
|
|
...
|