akabei 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -3
- data/CHANGELOG.md +3 -0
- data/README.md +3 -3
- data/lib/akabei/chroot_tree.rb +4 -2
- data/lib/akabei/omakase/cli.rb +1 -1
- data/lib/akabei/omakase/templates/.akabei.yml.tt +3 -0
- data/lib/akabei/version.rb +1 -1
- data/spec/spec_helper.rb +1 -22
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37430f6491dee2d877942915bc0a25bc7ea85faf
|
4
|
+
data.tar.gz: 69449642a9808f4227477c2e4647bd6a5502ec1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f279daae2e2dcae04e44aadc454f00102aa25390409982dc7112322e29e38bb483b7d8217fcc4cc717a2268575a8f795c91fa2adf84b51df68ff326aea4930
|
7
|
+
data.tar.gz: d8db38d394e73ced5c95f11b35ca3a79e880c7da8874e5ea73876c1e7b83177915cd4f7073713881238484c124bb9e6554ed30c9ee745e9ae352d4d63c4e5db9
|
data/.travis.yml
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.3
|
4
|
-
- 2.0.0
|
5
3
|
- 2.1
|
6
4
|
- 2.2
|
5
|
+
- 2.3.0
|
7
6
|
- ruby-head
|
7
|
+
addons:
|
8
|
+
apt:
|
9
|
+
packages:
|
10
|
+
- libarchive-dev
|
8
11
|
before_install:
|
9
|
-
-
|
12
|
+
- gem update bundler
|
10
13
|
matrix:
|
11
14
|
allow_failures:
|
12
15
|
- rvm: ruby-head
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Akabei
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/akabei.
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/akabei.svg)](https://badge.fury.io/rb/akabei)
|
3
3
|
[![Build Status](https://api.travis-ci.org/eagletmt/akabei.svg)](https://travis-ci.org/eagletmt/akabei)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/eagletmt/akabei.
|
5
|
-
[![Coverage Status](https://
|
4
|
+
[![Code Climate](https://codeclimate.com/github/eagletmt/akabei.svg)](https://codeclimate.com/github/eagletmt/akabei)
|
5
|
+
[![Coverage Status](https://img.shields.io/coveralls/eagletmt/akabei.svg)](https://coveralls.io/r/eagletmt/akabei)
|
6
6
|
|
7
7
|
Custom repository manager for ArchLinux pacman.
|
8
8
|
|
data/lib/akabei/chroot_tree.rb
CHANGED
@@ -11,7 +11,7 @@ module Akabei
|
|
11
11
|
attr_path_accessor :makepkg_config, :pacman_config
|
12
12
|
|
13
13
|
def initialize(root, arch)
|
14
|
-
@root = root && Pathname.new(root)
|
14
|
+
@root = root && Pathname.new(root).realpath
|
15
15
|
@arch = arch
|
16
16
|
end
|
17
17
|
|
@@ -19,7 +19,9 @@ module Akabei
|
|
19
19
|
|
20
20
|
def with_chroot(&block)
|
21
21
|
if @root
|
22
|
-
|
22
|
+
unless @root.join('root').directory?
|
23
|
+
mkarchroot(BASE_PACKAGES)
|
24
|
+
end
|
23
25
|
block.call
|
24
26
|
else
|
25
27
|
@root = Pathname.new(Dir.mktmpdir)
|
data/lib/akabei/omakase/cli.rb
CHANGED
@@ -78,7 +78,7 @@ module Akabei
|
|
78
78
|
s3 = S3.new(config['s3'], shell)
|
79
79
|
|
80
80
|
config.builds.each do |arch, config_file|
|
81
|
-
chroot = ChrootTree.new(
|
81
|
+
chroot = ChrootTree.new(config_file['chroot'], arch)
|
82
82
|
chroot.makepkg_config = config_file['makepkg']
|
83
83
|
chroot.pacman_config = config_file['pacman']
|
84
84
|
|
@@ -10,6 +10,9 @@ builds:
|
|
10
10
|
<%= arch %>:
|
11
11
|
makepkg: etc/makepkg.<%= arch %>.conf
|
12
12
|
pacman: etc/pacman.<%= arch %>.conf
|
13
|
+
# Uncomment the following line to keep chroot directory.
|
14
|
+
# btrfs users are recommended to uncomment it.
|
15
|
+
# chroot: ../<%= arch %>-root
|
13
16
|
<%- end -%>
|
14
17
|
s3:
|
15
18
|
<%- if options[:s3] -%>
|
data/lib/akabei/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -75,26 +75,6 @@ module TarHelpers
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
module ArrayStartingWith
|
79
|
-
class Matcher
|
80
|
-
def initialize(expected)
|
81
|
-
@expected = expected
|
82
|
-
end
|
83
|
-
|
84
|
-
def description
|
85
|
-
"array_starting_with(#{@expected.join(',')})"
|
86
|
-
end
|
87
|
-
|
88
|
-
def ==(actual)
|
89
|
-
actual[0 ... @expected.length] == @expected
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
def array_starting_with(expected)
|
94
|
-
Matcher.new(expected)
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
78
|
module IntegrationSpecHelper
|
99
79
|
def akabei(*cmd)
|
100
80
|
system(File.expand_path('../../bin/akabei', __FILE__), *cmd)
|
@@ -103,7 +83,7 @@ end
|
|
103
83
|
|
104
84
|
module BuildSpecHelper
|
105
85
|
def setup_command_expectations(arch, package_dir)
|
106
|
-
expect(Akabei::System).to receive(:sudo).with(
|
86
|
+
expect(Akabei::System).to receive(:sudo).with(start_with('mkarchroot'), hash_including(arch: arch))
|
107
87
|
expect(Akabei::System).to receive(:sudo).with(['rm', '-rf', anything], {})
|
108
88
|
|
109
89
|
expect(Akabei::System).to receive(:sudo).with(['makechrootpkg', '-cur', anything], hash_including(arch: arch, chdir: package_dir)) { |args, opts|
|
@@ -143,6 +123,5 @@ RSpec.configure do |config|
|
|
143
123
|
config.include OutputHelpers
|
144
124
|
config.include TarHelpers
|
145
125
|
config.include IntegrationSpecHelper
|
146
|
-
config.include ArrayStartingWith
|
147
126
|
config.include BuildSpecHelper
|
148
127
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akabei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kohei Suzuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gpgme
|
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
237
|
version: '0'
|
238
238
|
requirements: []
|
239
239
|
rubyforge_project:
|
240
|
-
rubygems_version: 2.
|
240
|
+
rubygems_version: 2.5.1
|
241
241
|
signing_key:
|
242
242
|
specification_version: 4
|
243
243
|
summary: Custom repository manager for ArchLinux pacman
|