Skip to content

Commit 7a29e79

Browse files
author
Bin Yi
committed
versoin string auto update
1 parent 0cf7af6 commit 7a29e79

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.gem
22
*.rbc
33
Gemfile.lock
4-
.idea/
4+
.idea/
5+
TAGS

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
lang: ruby
2-
script: bundle exec rake
3-
rvm: 2.3
2+
script: ci/build.sh
43
deploy:
54
provider: rubygems
65
api_key:

ci/build.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
echo "Starting build process in: `pwd`"
4+
set -e
5+
6+
echo "Install bundler..."
7+
gem install bundler
8+
9+
if [! -z "${TRAVIS_TAG}" ]; then
10+
echo "Building for tag ${TRAVIS_TAG}, modify .gemspec file..."
11+
sed -i '' "s/0.0.0/${TRAVIS_TAG}/g" ./fluent-plugin-sumologic_output.gemspec
12+
fi
13+
14+
echo "Install bundler..."
15+
bundle install
16+
17+
echo "Run unit tests..."
18+
bundle exec rake
19+
20+
echo "DONE"

fluent-plugin-sumologic_output.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
44

55
Gem::Specification.new do |gem|
66
gem.name = "fluent-plugin-sumologic_output"
7-
gem.version = "1.4.1"
7+
gem.version = "0.0.0"
88
gem.authors = ["Steven Adams", "Frank Reno"]
99
gem.email = ["stevezau@gmail.com", "frank.reno@me.com"]
1010
gem.description = %q{Output plugin to SumoLogic HTTP Endpoint}
@@ -16,7 +16,6 @@ Gem::Specification.new do |gem|
1616
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
1717
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
1818
gem.require_paths = ["lib"]
19-
gem.has_rdoc = false
2019

2120
gem.required_ruby_version = '>= 2.0.0'
2221

0 commit comments

Comments
 (0)