-
Notifications
You must be signed in to change notification settings - Fork 40
/
.drone.yml
55 lines (55 loc) · 1.08 KB
/
.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
47
48
49
50
51
52
53
54
55
kind: pipeline
name: test
platform:
os: linux
arch: amd64
steps:
- name: test-ruby
image: ruby:2.5
commands:
- gem install bundler -Nf
- bundle install --path bundler
- bundle exec rubocop --fail-level A -S --format c --parallel
- bundle exec rspec spec/
- name: test-shellcheck
image: koalaman/shellcheck-alpine:latest
commands:
- apk update && apk add bash
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
---
kind: pipeline
name: github-release
depends_on:
- test
platform:
os: linux
arch: amd64
steps:
- name: create_gh_release
image: ubuntu:xenial
environment:
GITHUB_TOKEN:
from_secret: github_token
commands:
- ./build/drone/create_release.sh
when:
event: tag
---
kind: pipeline
name: release-oss-binary
depends_on:
- github-release
platform:
os: linux
arch: amd64
steps:
- name: build_ubuntu
image: ubuntu:xenial
environment:
CPPFLAGS: "-P"
GITHUB_TOKEN:
from_secret: github_token
commands:
- ./build/drone/ubuntu.sh
when:
event: tag