-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrever.xsh
59 lines (44 loc) · 1.34 KB
/
rever.xsh
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
56
57
58
59
import sys
try:
input("Are you sure you are on the master branch which is identical to origin/master and there are no pending changes? [ENTER]")
except KeyboardInterrupt:
sys.exit(1)
from rever.activity import Activity
class Gem(Activity):
def __init__(self, **kwargs):
super().__init__()
self.name = "gem"
self.desc = "Create a ruby gem"
self.requires = {"commands": {"gem": "gem"}}
def __call__(self):
gem build logstash-filter-csharp.gemspec
return True
class RubyGems(Activity):
def __init__(self, **kwargs):
super().__init__()
self.name = "rubygems"
self.desc = "Upload a ruby gem"
self.requires = {"commands": {"gem": "gem"}}
def __call__(self):
gem push logstash-filter-csharp-$VERSION.gem
return True
$DAG['gem'] = Gem()
$DAG['rubygems'] = RubyGems()
$PROJECT = 'logstash-filter-csharp'
$ACTIVITIES = [
'version_bump',
'changelog',
'gem',
'rubygems',
'tag',
'push_tag',
'ghrelease',
]
$VERSION_BUMP_PATTERNS = [
('logstash-filter-csharp.gemspec', r's.version = ', r"s.version = '$VERSION'"),
]
$CHANGELOG_FILENAME = 'CHANGELOG.md'
$CHANGELOG_TEMPLATE = 'TEMPLATE.rst'
$PUSH_TAG_REMOTE = '[email protected]:miaplaza/logstash-filter-csharp.git'
$GITHUB_ORG = 'miaplaza'
$GITHUB_REPO = 'logstash-filter-csharp'