libmagellan 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e21cc85923f2eebfec88116a153c12321745c30
4
- data.tar.gz: b2545d5bf35d5b3eb1980cc1b3502cbc3e8d8de0
3
+ metadata.gz: a71b1c75381bc936336e82323a3b3b5102cf3fb7
4
+ data.tar.gz: d772aab16f69dfff35202db9445eaf80cfd9c5fd
5
5
  SHA512:
6
- metadata.gz: 40b39f10f12ee6eb1314be47422b72f6d1b98ff4563e9c9617f1404edbfa8cd1daacc4581225390abf38de9a3c5b660ff28c39416f497e72e1fecefadc96f9ec
7
- data.tar.gz: 2a7f409a3de5ab019f4bff1aa528c430b4a906c8f12ce0c523cce86c257421b36178ff5afcf9000ffc8037f76e023ec430b8a9c87d4f06f36aa08bd12b108a34
6
+ metadata.gz: 537bf61a20bebb9c4acf435c12fb5a53c63685ecb1e1724892bf6ad007b380fe49b326a10226f573dc63f73fd8e7eb39d27349461a905a534b6440a01329d235
7
+ data.tar.gz: e443bee21d874ac34d0093037252b0f978a1778362dff415cbaa59e65c516286f5bc6eb3f4063510d0a98e8390bdcd9c8912c20b86d9b7cf898977bd554b67dd
@@ -0,0 +1,78 @@
1
+ def slack
2
+ def github
3
+
4
+ pipeline {
5
+ agent none
6
+ options {
7
+ // 古いビルドを破棄 (daysToKeepStr: ビルドの保存日数, numToKeepStr: ビルドの保存最大数)
8
+ buildDiscarder(logRotator(numToKeepStr: '30'))
9
+ }
10
+ stages {
11
+ stage('load groovy scripts'){
12
+ agent any
13
+ steps {
14
+ script {
15
+ slack = load('.jenkins/slack.groovy')
16
+ github = load('.jenkins/github.groovy')
17
+ // GitHub commit status を pending にする
18
+ github.updateGithubCommitStatus(pending: true)
19
+ }
20
+ }
21
+ }
22
+ stage('test') {
23
+ agent {
24
+ // docker でテストするしDBは使わないので、ビルド環境は unittest でも functest でもいい
25
+ docker {
26
+ image 'ruby:2.4.5'
27
+ label 'unittest||functest'
28
+ args '-v /opt/bundler:/opt/bundler'
29
+ }
30
+ }
31
+ environment {
32
+ // docker を使うと HOME=/ になって、bundler が以下の警告を出すので対策
33
+ // `/` is not writable.
34
+ // Bundler will use `/tmp/bundler/home/unknown' as your home directory temporarily.
35
+ HOME = "${env.WORKSPACE}"
36
+ }
37
+ steps {
38
+ dir('libmagellan-ruby'){
39
+ // ビルド環境の確認
40
+ sh '''
41
+ export -p
42
+ gem env
43
+ bundle --version
44
+ '''
45
+ // bundle install
46
+ sh '''
47
+ bundle check --path=/opt/bundler/magellan-maneuvers__libmagellan-ruby || bundle install --jobs=4
48
+ bundle config
49
+ [ "$GIT_BRANCH" = "master" ] && bundle clean
50
+ bundle show --paths
51
+ '''
52
+ // テスト
53
+ sh 'bundle exec rake spec'
54
+ }
55
+ // ワークスペースを削除
56
+ cleanWs()
57
+ }
58
+ }
59
+ }
60
+ post {
61
+ always {
62
+ node('master') {
63
+ // GitHub commit status を更新
64
+ script {
65
+ github.updateGithubCommitStatus()
66
+ }
67
+ }
68
+ }
69
+ changed {
70
+ // Slack にビルド結果を通知
71
+ script {
72
+ slack.slackNotify()
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ /* vim:set ft=groovy: */
@@ -1,3 +1,3 @@
1
1
  module Libmagellan
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "signet", "~> 0.7.0"
21
+ spec.add_runtime_dependency "signet", "~> 0.7"
22
22
  spec.add_runtime_dependency "activesupport"
23
23
  spec.add_runtime_dependency "mqtt", "~> 0.3.1"
24
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libmagellan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - akima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-21 00:00:00.000000000 Z
11
+ date: 2018-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: signet
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.0
19
+ version: '0.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.0
26
+ version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -106,6 +106,7 @@ files:
106
106
  - ".rspec"
107
107
  - ".travis.yml"
108
108
  - Gemfile
109
+ - Jenkinsfile
109
110
  - LICENSE.txt
110
111
  - README.md
111
112
  - Rakefile
@@ -140,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
141
  version: '0'
141
142
  requirements: []
142
143
  rubyforge_project:
143
- rubygems_version: 2.4.5.1
144
+ rubygems_version: 2.6.14.1
144
145
  signing_key:
145
146
  specification_version: 4
146
147
  summary: ruby client for magellanic cloud