File tree 4 files changed +23
-5
lines changed
4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -51,19 +51,34 @@ You can install all needed gems for spec tests into the modules directory by
51
51
running:
52
52
53
53
``` sh
54
- bundle install --path .vendor/ --without development system_tests release
54
+ bundle install --path .vendor/ --without development system_tests release --jobs " $( nproc ) "
55
55
```
56
56
57
57
If you also want to run acceptance tests:
58
58
59
59
``` sh
60
- bundle install --path .vendor/ --with system_tests --without development release
60
+ bundle install --path .vendor/ --with system_tests --without development release --jobs " $( nproc ) "
61
61
```
62
62
63
63
Our all in one solution if you don't know if you need to install or update gems:
64
64
65
65
``` sh
66
- bundle install --path .vendor/ --with system_tests --without development release; bundle update; bundle clean
66
+ bundle install --path .vendor/ --with system_tests --without development release --jobs " $( nproc) " ; bundle update; bundle clean
67
+ ```
68
+
69
+ As an alternative to the ` --jobs "$(nproc) ` parameter, you can set an
70
+ environment variable:
71
+
72
+ ``` sh
73
+ BUNDLE_JOBS=" $( nproc) "
74
+ ```
75
+
76
+ ### Note for OS X users
77
+
78
+ ` nproc ` isn't a valid command unter OS x. As an alternative, you can do:
79
+
80
+ ``` sh
81
+ --jobs " $( sysctl -n hw.ncpu) "
67
82
```
68
83
69
84
## Syntax and style
@@ -160,7 +175,7 @@ created virtual machines will be in `.vagrant/beaker_vagrant_files`.
160
175
Beaker also supports docker containers. We also use that in our automated CI
161
176
pipeline at [ travis-ci] ( http://travis-ci.org ) . To use that instead of Vagrant:
162
177
163
- ```
178
+ ``` sh
164
179
PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian9-64{hypervisor=docker} BEAKER_destroy=yes bundle exec rake beaker
165
180
```
166
181
Original file line number Diff line number Diff line change 1
- modulesync_config_version : ' 2.7 .0'
1
+ modulesync_config_version : ' 2.8 .0'
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ group :test do
21
21
gem 'puppet-lint-unquoted_string-check' , :require => false
22
22
gem 'puppet-lint-variable_contains_upcase' , :require => false
23
23
gem 'puppet-lint-absolute_classname-check' , :require => false
24
+ gem 'puppet-lint-topscope-variable-check' , :require => false
24
25
gem 'metadata-json-lint' , :require => false
25
26
gem 'redcarpet' , :require => false
26
27
gem 'rubocop' , '~> 0.49.1' , :require => false
Original file line number Diff line number Diff line change 7
7
8
8
require 'puppetlabs_spec_helper/module_spec_helper'
9
9
require 'rspec-puppet-facts'
10
+ require 'bundler'
10
11
include RspecPuppetFacts
11
12
12
13
if File . exist? ( File . join ( __dir__ , 'default_module_facts.yml' ) )
31
32
add_filter '/spec'
32
33
add_filter '/vendor'
33
34
add_filter '/.vendor'
35
+ add_filter Bundler . configured_bundle_path . path
34
36
end
35
37
end
36
38
You can’t perform that action at this time.
0 commit comments