This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy path.drone.yml
More file actions
51 lines (49 loc) · 1.33 KB
/
.drone.yml
File metadata and controls
51 lines (49 loc) · 1.33 KB
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
47
48
49
50
51
clone:
git:
image: plugins/git
branch: master
depth: 32767
workspace:
base: /build
path: src/github.com/mephux/ruby-nessus
pipeline:
normal:
image: mephux/docker-golang
environment:
- GO15VENDOREXPERIMENT=1
commands:
- export GEM_HOME=$HOME/.gem
- export GEM_PATH=$HOME/.gem
- export PATH=$PATH:$GEM_PATH/bin
- apk add --update rpm ruby-dev gcc make > /dev/null 2>&1
- gem install bundler --no-rdoc --no-ri --no-document
- bundle install --jobs=3 --retry=3
- bundle exec rubocop -F --fail-level C -f s
- bundle exec rspec spec
when:
event: [push]
dist:
image: mephux/docker-golang
environment:
- GO15VENDOREXPERIMENT=1
commands:
- export GEM_HOME=$HOME/.gem
- export GEM_PATH=$HOME/.gem
- export PATH=$PATH:$GEM_PATH/bin
- apk add --update rpm ruby-dev gcc make > /dev/null 2>&1
- gem install bundler --no-rdoc --no-ri --no-document
- bundle install --jobs=3 --retry=3
- bundle exec rubocop -F --fail-level C -f s
- bundle exec rspec spec
- gem build ruby-nessus.gemspec
- gem push ruby-nessus.gem --key=$$rubygems
when:
event: [tag]
publish:
github_release:
api_key: $$GITHUB
files: dist/*xz
file_exists: fail
# draft: true
when:
event: tag