beaker-docker 1.4.0 → 2.0.0

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: 0d52bba21bf02a7a3f1377a20e05315c36eb616bd37b5a1094c51718a2e0a770
4
- data.tar.gz: c21653ddc0b556a1e7be7adaf661c9943fd14a135248bd8ad5f13cc4d89e1d27
3
+ metadata.gz: ec5e8da1c0bde0ac2d4fb47e3aa6e895dfa64c847601eb8ee2a81b6e6ddbcb99
4
+ data.tar.gz: c9a290762c10c8353be0ac34c5d2d3a71560f2d872d04f6c524281518cf54c4b
5
5
  SHA512:
6
- metadata.gz: 58d7e309ae26e61d7091d203ee393bd822557b765ba20bd2a5e1ab2905dacbb205bb11de64637c399fd057ae4b3950b58ba18f4e93f7c42f2a59183cd61936a7
7
- data.tar.gz: 7f172a3c5d75e09ca35128e466fa96e59b820cd75317c828330375ea712ebbcdf0eb2f9fc8ee86ef51e293b5b2370bcd86a12b84eb61542e8f6f1d042711bdbf
6
+ metadata.gz: 74aab6d73118cfea7aa6a29c7f1159c900dd392fe5de144f5440d6f0e9b4630f7c87010903b0342e2ed3edd7626efcdcd1f96d5aa6226a5db27a92be54e89b60
7
+ data.tar.gz: 99a7fc569eea379541e5177432daa3e6c568773de88d6ba56047a69231fab107e76397167a024eae6192f296d9c09b235820df9d4c55f25f47050cbad9a25d5c
data/.editorconfig ADDED
@@ -0,0 +1,10 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ indent_size = 2
7
+ tab_width = 2
8
+ indent_style = space
9
+ insert_final_newline = true
10
+ trim_trailing_whitespace = true
@@ -1,43 +1,38 @@
1
1
  name: Test
2
2
 
3
3
  on:
4
- - pull_request
5
- - push
4
+ pull_request: {}
5
+ push:
6
+ branches:
7
+ - master
6
8
 
7
9
  env:
8
10
  BUNDLE_WITHOUT: release
9
11
 
10
12
  jobs:
11
- lint:
13
+ rubocop:
12
14
  runs-on: ubuntu-latest
13
- strategy:
14
- fail-fast: true
15
- matrix:
16
- include:
17
- - ruby: "2.7"
18
- name: Lint - Ruby ${{ matrix.ruby }}
19
15
  steps:
20
16
  - uses: actions/checkout@v3
21
- - name: Install Ruby ${{ matrix.ruby }}
17
+ - name: Install Ruby 3.2
22
18
  uses: ruby/setup-ruby@v1
23
19
  with:
24
- ruby-version: ${{ matrix.ruby }}
20
+ ruby-version: "3.2"
25
21
  bundler-cache: true
26
- - name: lint
27
- run: bundle exec rake lint
22
+ - name: Run Rubocop
23
+ run: bundle exec rake rubocop
28
24
 
29
25
  rspec:
30
26
  runs-on: ubuntu-latest
31
27
  strategy:
32
- fail-fast: true
28
+ fail-fast: false
33
29
  matrix:
34
30
  include:
35
- - ruby: "2.4"
36
- - ruby: "2.5"
37
- - ruby: "2.6"
38
31
  - ruby: "2.7"
39
32
  - ruby: "3.0"
40
33
  coverage: "yes"
34
+ - ruby: "3.1"
35
+ - ruby: "3.2"
41
36
  env:
42
37
  COVERAGE: ${{ matrix.coverage }}
43
38
  name: RSpec - Ruby ${{ matrix.ruby }}
@@ -55,33 +50,14 @@ jobs:
55
50
 
56
51
  docker:
57
52
  runs-on: ubuntu-latest
58
- strategy:
59
- fail-fast: true
60
- matrix:
61
- ruby:
62
- - "2.6"
63
- name: Docker - Ruby ${{ matrix.ruby }}
53
+ name: Docker
64
54
  steps:
65
55
  - uses: actions/checkout@v3
66
- - name: Install Ruby ${{ matrix.ruby }}
56
+ - name: Install Ruby 3.2
67
57
  uses: ruby/setup-ruby@v1
68
58
  with:
69
- ruby-version: ${{ matrix.ruby }}
59
+ ruby-version: "3.2"
70
60
  bundler-cache: true
71
- - name: install bundler
72
- run: |
73
- gem install bundler -v '~> 1.17.3'
74
- bundle update
75
- - name: install container runtime
76
- run: |
77
- sudo apt-get remove -y docker docker-engine docker.io containerd runc ||:
78
- sudo apt-get update -y
79
- sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
80
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
81
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
82
- sudo apt-get update -y
83
- sudo apt-get install -y docker-ce docker-ce-cli containerd.io
84
- sudo systemctl start docker
85
61
  - name: Run acceptance tests
86
62
  run: bundle exec rake test:acceptance
87
63
 
@@ -105,31 +81,25 @@ jobs:
105
81
 
106
82
  podman:
107
83
  runs-on: ubuntu-latest
108
- strategy:
109
- fail-fast: true
110
- matrix:
111
- ruby:
112
- - "2.6"
113
- name: Podman - Ruby ${{ matrix.ruby }}
84
+ name: Podman
114
85
  steps:
115
86
  - uses: actions/checkout@v3
116
- - name: Install Ruby ${{ matrix.ruby }}
87
+ - name: Install Ruby 3.2
117
88
  uses: ruby/setup-ruby@v1
118
89
  with:
119
- ruby-version: ${{ matrix.ruby }}
90
+ ruby-version: "3.2"
120
91
  bundler-cache: true
121
- - name: install bundler
122
- run: |
123
- gem install bundler -v '~> 1.17.3'
124
- bundle update
125
- # We need the latest version of podman for this to work
126
- - name: install container runtime
127
- run: |
128
- . /etc/os-release
129
- curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
130
- echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/podman.list > /dev/null
131
- sudo apt-get update
132
- sudo apt-get -y install podman
133
- sudo systemctl start podman
134
92
  - name: Run acceptance tests
135
93
  run: bundle exec rake test:acceptance
94
+
95
+ tests:
96
+ needs:
97
+ - docker
98
+ - beaker_in_container
99
+ - podman
100
+ - rubocop
101
+ - rspec
102
+ runs-on: ubuntu-latest
103
+ name: Test suite
104
+ steps:
105
+ - run: echo Test suite completed
data/.gitignore CHANGED
@@ -12,6 +12,7 @@ coverage
12
12
  .bundle
13
13
  .vendor
14
14
  _vendor
15
+ vendor
15
16
  tmp/
16
17
  doc
17
18
  # JetBrains IDEA
data/.rubocop.yml CHANGED
@@ -1,30 +1,10 @@
1
- # The behavior of RuboCop can be controlled via the .rubocop.yml
2
- # configuration file. It makes it possible to enable/disable
3
- # certain cops (checks) and to alter their behavior if they accept
4
- # any parameters. The file can be placed either in your home
5
- # directory or in some project directory.
6
- #
7
- # RuboCop will start looking for the configuration file in the directory
8
- # where the inspected file is and continue its way up to the root directory.
9
- #
10
- # See https://docs.rubocop.org/rubocop/configuration
11
1
  ---
12
2
  inherit_from: .rubocop_todo.yml
13
3
 
14
- require:
15
- - rubocop-performance
16
- - rubocop-rake
17
- - rubocop-rspec
4
+ inherit_gem:
5
+ beaker: rubocop.yml
18
6
 
19
- AllCops:
20
- NewCops: enable
21
- DisplayCopNames: true
22
- ExtraDetails: true
23
- DisplayStyleGuide: true
24
- TargetRubyVersion: '2.4'
7
+ Naming/FileName:
8
+ Description: Some files violates the snake_case convention
25
9
  Exclude:
26
- - vendor/**/*
27
-
28
- # Disable temporarily
29
- Style/HashSyntax:
30
- Enabled: false
10
+ - 'lib/beaker-docker.rb'