-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.drone.yml
46 lines (42 loc) · 892 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
kind: pipeline
type: docker
name: build
volumes:
- name: bundle
host:
path: /home/data/drone/gems
- name: rubygems
host:
path: /home/data/drone/rubygems
spec_step_common: &spec_step_common
pull: if-not-exists
volumes:
- name: bundle
path: /bundle
commands:
- rm -fr Gemfile.lock gemfiles/
- bundle install -j 5
- bundle exec appraisal install
- bundle exec appraisal bundle exec rspec
steps:
- name: build on ruby2.4
image: abakpress/ruby-app:2.4-latest
environment:
TEST_DB_HOST: postgres
TEST_DB_NAME: docker
TEST_DB_USERNAME: postgres
BUNDLE_PATH: /bundle/2.4
<<: *spec_step_common
- name: release
image: abakpress/gem-publication:latest
pull: if-not-exists
when:
event: push
branch: master
status: success
volumes:
- name: rubygems
path: /root/.gem
commands:
- release-gem --public