kitchen-docker_ssh 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82c33193d75dfc38cbf58098c819b20d7b3b3c45
4
- data.tar.gz: fe5c261f7f42f4371b91536902662298f04feac7
3
+ metadata.gz: 4b45824205cb674c25d704793fd0dde9ad82845c
4
+ data.tar.gz: 0f5954508deead4d19e1b6fd46f8a036e33b4dcd
5
5
  SHA512:
6
- metadata.gz: 2a64903d880f0692052da4ef6dfa45a0fa91de0428e62926e1db292d042104991520d18133435df24979772918926b911d6a54f0fb01219bc800fa5186aae2ea
7
- data.tar.gz: 251c4c25d39f6465f5736a680c7795cfb1eb7ff8aa0d8b38bb626308fcdbccf601aff71f6d966467443ccedf8414e3d89bee79270df5035b73ca76f2d156791e
6
+ metadata.gz: 82c321e85e3f660c9cb537a6bb3ddfe82410ef01785391f5b3d73b9f281ad47b7bab689702bfc0ab79bcadda8dcfb337555669f1a414f6672f7692e3830e6e7e
7
+ data.tar.gz: 620e0e84306ab170f0ed34200ab8b2ebf3814a968f0425dc5e3ffb067872bc97723580edb08c57d5f10e9abd35a6140cf55a44dc43cb5cbf7341e668a559092d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.15
1
+ 0.0.17
data/circle.yml CHANGED
@@ -18,4 +18,6 @@ deployment:
18
18
  release:
19
19
  branch: feature/versioning
20
20
  commands:
21
- - git status
21
+ - git config user.name "CircleCi"
22
+ - git config user.email "circleci@users.noreply.github.com"
23
+ - ./gemrelease.sh
data/gemrelease.sh ADDED
@@ -0,0 +1,50 @@
1
+ #!/bin/bash
2
+
3
+ [[ $(git status -s | grep -v ?? | wc -l ) -gt 0 ]] && { echo "uncommited changes, can't continue"; exit 1; }
4
+
5
+ VERSION_FILE=./VERSION
6
+ RELEASE_TYPE=patch
7
+ [ ! -z "$1" ] && RELEASE_TYPE=$1
8
+
9
+ [ -z "$(git config user.name)" ] && git config user.name "CI User"
10
+ [ -z "$(git config user.email)" ] && git config user.email"ci.user@users.noreply.github.com"
11
+
12
+ GEMSPEC_FILE=$(ls -1 *.gemspec | head -1)
13
+
14
+ [ ! -f $GEMSPEC_FILE ] && { echo "no gemspec file"; exit 1; }
15
+ [ ! -d ./vendor/bundle/ruby ] && bundle install --deployment
16
+
17
+ rm -f $VERSION_FILE && echo "Current Version is: $(bundle exec scmversion current )"
18
+
19
+ [ ! -f $VERSION_FILE ] && { echo "no version file"; exit 1; }
20
+
21
+ bundle exec scmversion bump $RELEASE_TYPE
22
+ [[ $? -ne 0 ]] && { echo "Version Update Failed"; exit 1; }
23
+
24
+ RELEASE_VERSION=$(cat $VERSION_FILE)
25
+ GEM_FILE=$(echo $GEMSPEC_FILE | sed 's/\.gemspec//')-${RELEASE_VERSION}.gem
26
+
27
+ trap "rm -f $GEM_FILE VERSION" 0 1
28
+
29
+ echo "Deploying Release version: $RELEASE_VERSION"
30
+
31
+ [[ $? -ne 0 ]] && { echo "unable to update version file"; exit 1; }
32
+ [ -z "$(bundle exec gem list kitchen-docker_ssh -q | grep "($RELEASE_VERSION)" )" ] && { echo "Version not updated"; exit 1; }
33
+
34
+ bundle exec gem build $GEMSPEC_FILE
35
+ [[ $? -ne 0 ]] && { echo "Gem Build failed"; exit 1; }
36
+
37
+ if [ ! -f ~/.gem/credentials ]; then
38
+ cat <<-EOF > ~/.gem/credentials
39
+ ---
40
+ :rubygems_api_key: $RUBYGEMS_API_KEY
41
+ EOF
42
+ chmod 0600 ~/.gem/credentials
43
+ fi
44
+
45
+ bundle exec gem push $GEM_FILE --key rubygems
46
+ [[ $? -ne 0 ]] && { echo "Gem Push failed"; exit 1; }
47
+
48
+ echo "Done"
49
+
50
+ exit 0
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for DockerSsh Kitchen driver
24
- DOCKER_SSH_VERSION = IO.read("VERSION") rescue '0.0.1'
24
+ DOCKER_SSH_VERSION = IO.read('VERSION') rescue '0.0.1'
25
25
  end
26
26
  end
data/test/foo ADDED
@@ -0,0 +1 @@
1
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker_ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Abbott
@@ -125,6 +125,7 @@ files:
125
125
  - Rakefile
126
126
  - VERSION
127
127
  - circle.yml
128
+ - gemrelease.sh
128
129
  - kitchen-docker_ssh.gemspec
129
130
  - lib/kitchen/driver/docker/erb.rb
130
131
  - lib/kitchen/driver/docker_ssh.rb
@@ -132,6 +133,7 @@ files:
132
133
  - spec/kitchen/driver/docker_spec.rb
133
134
  - test/.kitchen.test.yml
134
135
  - test/.kitchen.yml
136
+ - test/foo
135
137
  - test/integration/capabilities/serverspec/capabilities_drop_spec.rb
136
138
  - test/integration/default/serverspec/default_spec.rb
137
139
  - test/integration/dockerfile/serverspec/default_spec.rb
@@ -155,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
157
  version: '0'
156
158
  requirements: []
157
159
  rubyforge_project:
158
- rubygems_version: 2.4.4
160
+ rubygems_version: 2.4.6
159
161
  signing_key:
160
162
  specification_version: 4
161
163
  summary: A Test Kitchen Driver for DockerSsh
@@ -163,6 +165,7 @@ test_files:
163
165
  - spec/kitchen/driver/docker_spec.rb
164
166
  - test/.kitchen.test.yml
165
167
  - test/.kitchen.yml
168
+ - test/foo
166
169
  - test/integration/capabilities/serverspec/capabilities_drop_spec.rb
167
170
  - test/integration/default/serverspec/default_spec.rb
168
171
  - test/integration/dockerfile/serverspec/default_spec.rb