capistrano-itamae 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: ff014760ac71c576ffe1439c54c417d9a95891126184212d35b52371fbad6ecc
4
- data.tar.gz: 939e3cc89764f17944e2ef2e4708730fb6f386287f236dd31f7c567e4279a45d
3
+ metadata.gz: 00d5786ed91b10aee2f797d48ff0f3cf34992a4a4f43aaca0bf765f84ef53b15
4
+ data.tar.gz: a7198ab779f2c0b060d70adda2f7e081536209fc80550e0a9112670c6410a500
5
5
  SHA512:
6
- metadata.gz: 934a85067c45717c45eea23a0205046a5836bee6e3162729a5d6cd32eb7610a6674460f98e87a7bce40ef290a93455d592f73f93dc2b083fd65770557e2968ff
7
- data.tar.gz: 1a31ab8e44e5d630107c6c220c20c25b0b137b0c7a55a004bfe71e319313f28f63bc68df509655d2f4f4928b363781d5ef81a29355a9dae5d204768770586340
6
+ metadata.gz: 719c4583ea98c62fe737bba19c5e5dd4c33d13c47349610ec8f4e3d390f4ab4ec185c769a03bef20ca8bd47d78d03a38d716c6cfe5803f157ee147171adc6523
7
+ data.tar.gz: 9afec7b52cecb4c2707216bda56fd9b325968ab82d77896a3d6d9261b790ca8a2177e0162179e09212a65275bb67d182f3fe345497c1f216abd27ae94edd6a41
@@ -0,0 +1,134 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ schedule:
6
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
7
+
8
+ env:
9
+ CI: "true"
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ${{ matrix.runner }}
14
+
15
+ strategy:
16
+ fail-fast: false
17
+
18
+ matrix:
19
+ ruby:
20
+ - 2.3.0
21
+ - 2.4.0
22
+ - 2.5.0
23
+ - 2.6.0
24
+ - 2.7.0
25
+ - 2.8.0-dev
26
+ include:
27
+ - ruby: 2.3.0
28
+ runner: ubuntu-16.04
29
+ - ruby: 2.4.0
30
+ runner: ubuntu-latest
31
+ - ruby: 2.5.0
32
+ runner: ubuntu-latest
33
+ - ruby: 2.6.0
34
+ runner: ubuntu-latest
35
+ - ruby: 2.7.0
36
+ runner: ubuntu-latest
37
+ - ruby: 2.8.0-dev
38
+ runner: ubuntu-latest
39
+
40
+ steps:
41
+ - uses: actions/checkout@v2
42
+
43
+ - name: Set up rbenv
44
+ uses: masa-iwasaki/setup-rbenv@1.1.0
45
+
46
+ - name: Cache RBENV_ROOT
47
+ uses: actions/cache@v1
48
+ id: cache_rbenv
49
+ with:
50
+ path: ~/.rbenv/versions
51
+ key: v1-rbenv-${{ runner.os }}-${{ matrix.ruby }}
52
+ if: "!endsWith(matrix.ruby, '-dev')"
53
+
54
+ - name: Reinstall libssl-dev
55
+ run: |
56
+ set -xe
57
+ sudo apt-get remove -y libssl-dev
58
+ sudo apt-get install -y libssl-dev=1.0.2g-1ubuntu4.15
59
+ if: matrix.runner == 'ubuntu-16.04'
60
+
61
+ - name: Install Ruby
62
+ run: |
63
+ set -xe
64
+ eval "$(rbenv init -)"
65
+ rbenv install -s $RBENV_VERSION
66
+
67
+ gem install bundler --no-document -v 1.17.3 || true
68
+ env:
69
+ RBENV_VERSION: ${{ matrix.ruby }}
70
+ continue-on-error: ${{ endsWith(matrix.ruby, '-dev') }}
71
+
72
+ - name: Cache vendor/bundle
73
+ uses: actions/cache@v1
74
+ id: cache_gem
75
+ with:
76
+ path: vendor/bundle
77
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
78
+ restore-keys: |
79
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
80
+ continue-on-error: ${{ endsWith(matrix.ruby, '-dev') }}
81
+
82
+ - name: bundle update
83
+ run: |
84
+ set -xe
85
+ eval "$(rbenv init -)"
86
+ bundle config path vendor/bundle
87
+ bundle update --jobs $(nproc) --retry 3
88
+ env:
89
+ RBENV_VERSION: ${{ matrix.ruby }}
90
+ continue-on-error: ${{ endsWith(matrix.ruby, '-dev') }}
91
+
92
+ - name: Setup sandbox server
93
+ working-directory: spec/integration
94
+ run: |
95
+ set -xe
96
+ docker image build . -t ssh_server
97
+ docker run -d -p 10000:22 ssh_server
98
+
99
+ - name: Run integration test
100
+ working-directory: spec/integration
101
+ run: |
102
+ set -xe
103
+ eval "$(rbenv init -)"
104
+ bundle exec rake spec
105
+ env:
106
+ RBENV_VERSION: ${{ matrix.ruby }}
107
+ continue-on-error: ${{ endsWith(matrix.ruby, '-dev') }}
108
+
109
+ - name: Slack Notification (not success)
110
+ uses: homoluctus/slatify@v2.0.0
111
+ if: "! success()"
112
+ with:
113
+ job_name: ${{ format('*build* ({0})', matrix.ruby) }}
114
+ type: ${{ job.status }}
115
+ icon_emoji: ":octocat:"
116
+ url: ${{ secrets.SLACK_WEBHOOK }}
117
+ token: ${{ secrets.GITHUB_TOKEN }}
118
+
119
+ notify:
120
+ needs:
121
+ - test
122
+
123
+ runs-on: ubuntu-latest
124
+
125
+ steps:
126
+ - name: Slack Notification (success)
127
+ uses: homoluctus/slatify@v2.0.0
128
+ if: always()
129
+ with:
130
+ job_name: '*build*'
131
+ type: ${{ job.status }}
132
+ icon_emoji: ":octocat:"
133
+ url: ${{ secrets.SLACK_WEBHOOK }}
134
+ token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/capistrano-itamae/compare/v1.0.0...master)
2
+ [full changelog](http://github.com/sue445/capistrano-itamae/compare/v1.0.1...master)
3
+
4
+ ## v1.0.1
5
+ [full changelog](http://github.com/sue445/capistrano-itamae/compare/v1.0.0...v1.0.1)
6
+
7
+ * Resolved. bundler deprecation warning
8
+ * https://github.com/sue445/capistrano-itamae/pull/26
3
9
 
4
10
  ## v1.0.0
5
11
  [full changelog](http://github.com/sue445/capistrano-itamae/compare/v0.2.0...v1.0.0)
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Run [itamae](https://github.com/itamae-kitchen/itamae) in capistrano task
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/capistrano-itamae.svg)](https://badge.fury.io/rb/capistrano-itamae)
6
- [![wercker status](https://app.wercker.com/status/a2f734cda581d3d221e10b1ede83bb71/s/master "wercker status")](https://app.wercker.com/project/byKey/a2f734cda581d3d221e10b1ede83bb71)
6
+ [![Build Status](https://github.com/sue445/capistrano-itamae/workflows/test/badge.svg?branch=master)](https://github.com/sue445/capistrano-itamae/actions?query=workflow%3Atest)
7
7
  [![Code Climate](https://codeclimate.com/github/sue445/capistrano-itamae/badges/gpa.svg)](https://codeclimate.com/github/sue445/capistrano-itamae)
8
8
 
9
9
  ## Installation
@@ -85,7 +85,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
85
85
  ## Integration test
86
86
  ```sh
87
87
  cd spec/integration
88
- bundle exec vagrant up
88
+ docker image build . -t ssh_server
89
+ docker run -d -p 10000:22 ssh_server
89
90
  bundle exec rake spec
90
91
  ```
91
92
 
@@ -18,7 +18,7 @@ module Capistrano
18
18
  server = host
19
19
 
20
20
  run_locally do
21
- Bundler.with_clean_env do
21
+ Bundler.with_original_env do
22
22
  with environment do
23
23
  execute(*generate_itamae_ssh_command(server, recipe_paths, itamae_options))
24
24
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Itamae
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2020-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".github/workflows/test.yml"
104
105
  - ".gitignore"
105
106
  - CHANGELOG.md
106
107
  - Gemfile
@@ -115,7 +116,6 @@ files:
115
116
  - lib/capistrano/itamae/dsl.rb
116
117
  - lib/capistrano/itamae/variables.rb
117
118
  - lib/capistrano/itamae/version.rb
118
- - wercker.yml
119
119
  homepage: https://github.com/sue445/capistrano-itamae
120
120
  licenses:
121
121
  - MIT
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.0.1
138
+ rubygems_version: 3.1.2
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Run itamae in capistrano task
@@ -1,87 +0,0 @@
1
- # This references the default Ruby container from
2
- # the Docker Hub.
3
- # https://registry.hub.docker.com/_/ruby/
4
- # If you want to use a specific version you would use a tag:
5
- # ruby:2.2.2
6
- box: drecom/centos-ruby:2.3.1
7
- # You can also use services such as databases. Read more on our dev center:
8
- # http://devcenter.wercker.com/docs/services/index.html
9
- # services:
10
- # - postgres
11
- # http://devcenter.wercker.com/docs/services/postgresql.html
12
-
13
- # - mongo
14
- # http://devcenter.wercker.com/docs/services/mongodb.html
15
-
16
- # This is the build pipeline. Pipelines are the core of wercker
17
- # Read more about pipelines on our dev center
18
- # http://devcenter.wercker.com/docs/pipelines/index.html
19
- build:
20
- # Steps make up the actions in your pipeline
21
- # Read more about steps on our dev center:
22
- # http://devcenter.wercker.com/docs/steps/index.html
23
- steps:
24
- - script:
25
- name: Install Vagrant
26
- code: |
27
- wget https://releases.hashicorp.com/vagrant/1.8.4/vagrant_1.8.4_x86_64.rpm
28
- rpm -i vagrant_1.8.4_x86_64.rpm
29
- vagrant plugin install vagrant-digitalocean
30
-
31
- - script:
32
- # NOTE: vagrant v1.8.4 depends on bundler v1.12.5
33
- # https://github.com/mitchellh/vagrant/blob/v1.8.4/vagrant.gemspec#L23
34
- name: Install bundler
35
- code: |
36
- gem uninstall bundler --all --force
37
- gem install bundler -v 1.12.5
38
-
39
- - bundle-install:
40
- jobs: 4
41
-
42
- - script:
43
- name: create .ssh directory
44
- code: mkdir -m 700 -p $HOME/.ssh
45
-
46
- - create-file:
47
- name: put private key
48
- filename: $HOME/.ssh/id_rsa.vagrant
49
- overwrite: true
50
- hide-from-log: true
51
- content: $DIGITALOCEAN_KEY_PRIVATE
52
-
53
- - create-file:
54
- name: put public key
55
- filename: $HOME/.ssh/id_rsa.vagrant.pub
56
- overwrite: true
57
- hide-from-log: true
58
- content: $DIGITALOCEAN_KEY_PUBLIC
59
-
60
- - script:
61
- name: chmod 600 id_rsa
62
- code: chmod 600 $HOME/.ssh/id_rsa.vagrant
63
-
64
- - script:
65
- name: start vm
66
- code: vagrant up default --provider=digital_ocean
67
- cwd: spec/integration
68
-
69
- - script:
70
- name: vagrant ssh-config
71
- code: vagrant ssh-config
72
- cwd: spec/integration
73
-
74
- - script:
75
- name: run integration test
76
- code: bundle exec rake spec
77
- cwd: spec/integration
78
-
79
- after-steps:
80
- - script:
81
- name: shutdown all vms
82
- code: vagrant destroy -f
83
- cwd: spec/integration
84
-
85
- - slack-notifier:
86
- url: $SLACK_WEBHOOK_URL
87
- username: wercker_build