Skip to content

Commit 9913ed2

Browse files
jimbo8098gsdevme
authored andcommitted
Implementing tests in Travis
1 parent e38f46d commit 9913ed2

File tree

5 files changed

+260
-0
lines changed

5 files changed

+260
-0
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: ruby
2+
before_install:
3+
- gem install bundler
4+
branches:
5+
- only:
6+
- travisci
7+
- master
8+
env:
9+
- CHEF_VERSION=13
10+
rvm:
11+
- 2.6

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem 'berkshelf'
4+
gem 'rake'

Gemfile.lock

Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.7.0)
5+
public_suffix (>= 2.0.2, < 5.0)
6+
bcrypt_pbkdf (1.0.1)
7+
berkshelf (7.0.9)
8+
chef (>= 13.6.52)
9+
chef-config
10+
cleanroom (~> 1.0)
11+
concurrent-ruby (~> 1.0)
12+
minitar (>= 0.6)
13+
mixlib-archive (>= 0.4, < 2.0)
14+
mixlib-config (>= 2.2.5)
15+
mixlib-shellout (>= 2.0, < 4.0)
16+
octokit (~> 4.0)
17+
retryable (>= 2.0, < 4.0)
18+
solve (~> 4.0)
19+
thor (>= 0.20)
20+
builder (3.2.4)
21+
chef (15.7.32)
22+
addressable
23+
bcrypt_pbkdf (~> 1.0)
24+
bundler (>= 1.10)
25+
chef-config (= 15.7.32)
26+
chef-utils (= 15.7.32)
27+
chef-zero (>= 14.0.11)
28+
diff-lcs (~> 1.2, >= 1.2.4)
29+
ed25519 (~> 1.2)
30+
erubis (~> 2.7)
31+
ffi (~> 1.9, >= 1.9.25)
32+
ffi-libarchive
33+
ffi-yajl (~> 2.2)
34+
highline (>= 1.6.9, < 2)
35+
iniparse (~> 1.4)
36+
license-acceptance (~> 1.0, >= 1.0.5)
37+
mixlib-archive (>= 0.4, < 2.0)
38+
mixlib-authentication (>= 2.1, < 4)
39+
mixlib-cli (>= 2.1.1, < 3.0)
40+
mixlib-log (>= 2.0.3, < 4.0)
41+
mixlib-shellout (>= 3.0.3, < 4.0)
42+
net-sftp (~> 2.1, >= 2.1.2)
43+
net-ssh (>= 4.2, < 6)
44+
net-ssh-multi (~> 1.2, >= 1.2.1)
45+
ohai (~> 15.0)
46+
plist (~> 3.2)
47+
proxifier (~> 1.0)
48+
syslog-logger (~> 1.6)
49+
train-core (~> 3.1)
50+
train-winrm (>= 0.2.5)
51+
tty-screen (~> 0.6)
52+
uuidtools (~> 2.1.5)
53+
chef-config (15.7.32)
54+
addressable
55+
chef-utils (= 15.7.32)
56+
fuzzyurl
57+
mixlib-config (>= 2.2.12, < 4.0)
58+
mixlib-shellout (>= 2.0, < 4.0)
59+
tomlrb (~> 1.2)
60+
chef-utils (15.7.32)
61+
chef-zero (14.0.17)
62+
ffi-yajl (~> 2.2)
63+
hashie (>= 2.0, < 4.0)
64+
mixlib-log (>= 2.0, < 4.0)
65+
rack (~> 2.0, >= 2.0.6)
66+
uuidtools (~> 2.1)
67+
cleanroom (1.0.0)
68+
concurrent-ruby (1.1.5)
69+
diff-lcs (1.3)
70+
ed25519 (1.2.4)
71+
equatable (0.6.1)
72+
erubi (1.9.0)
73+
erubis (2.7.0)
74+
faraday (1.0.0)
75+
multipart-post (>= 1.2, < 3)
76+
ffi (1.12.2)
77+
ffi-libarchive (1.0.0)
78+
ffi (~> 1.0)
79+
ffi-yajl (2.3.3)
80+
libyajl2 (~> 1.2)
81+
fuzzyurl (0.9.0)
82+
gssapi (1.3.0)
83+
ffi (>= 1.0.1)
84+
gyoku (1.3.1)
85+
builder (>= 2.1.2)
86+
hashie (3.6.0)
87+
highline (1.7.10)
88+
httpclient (2.8.3)
89+
iniparse (1.4.4)
90+
ipaddress (0.8.3)
91+
json (2.3.0)
92+
libyajl2 (1.2.0)
93+
license-acceptance (1.0.13)
94+
pastel (~> 0.7)
95+
tomlrb (~> 1.2)
96+
tty-box (~> 0.3)
97+
tty-prompt (~> 0.18)
98+
little-plugger (1.1.4)
99+
logging (2.2.2)
100+
little-plugger (~> 1.1)
101+
multi_json (~> 1.10)
102+
minitar (0.9)
103+
mixlib-archive (1.0.5)
104+
mixlib-log
105+
mixlib-authentication (3.0.6)
106+
mixlib-cli (2.1.5)
107+
mixlib-config (3.0.6)
108+
tomlrb
109+
mixlib-log (3.0.8)
110+
mixlib-shellout (3.0.9)
111+
molinillo (0.6.6)
112+
multi_json (1.14.1)
113+
multipart-post (2.1.1)
114+
necromancer (0.5.1)
115+
net-scp (2.0.0)
116+
net-ssh (>= 2.6.5, < 6.0.0)
117+
net-sftp (2.1.2)
118+
net-ssh (>= 2.6.5)
119+
net-ssh (5.2.0)
120+
net-ssh-gateway (2.0.0)
121+
net-ssh (>= 4.0.0)
122+
net-ssh-multi (1.2.1)
123+
net-ssh (>= 2.6.5)
124+
net-ssh-gateway (>= 1.2.0)
125+
nori (2.6.0)
126+
octokit (4.15.0)
127+
faraday (>= 0.9)
128+
sawyer (~> 0.8.0, >= 0.5.3)
129+
ohai (15.7.4)
130+
chef-config (>= 12.8, < 16)
131+
ffi (~> 1.9)
132+
ffi-yajl (~> 2.2)
133+
ipaddress
134+
mixlib-cli (>= 1.7.0)
135+
mixlib-config (>= 2.0, < 4.0)
136+
mixlib-log (>= 2.0.1, < 4.0)
137+
mixlib-shellout (>= 2.0, < 4.0)
138+
plist (~> 3.1)
139+
systemu (~> 2.6.4)
140+
wmi-lite (~> 1.0)
141+
pastel (0.7.3)
142+
equatable (~> 0.6)
143+
tty-color (~> 0.5)
144+
plist (3.5.0)
145+
proxifier (1.0.3)
146+
public_suffix (4.0.3)
147+
rack (2.1.2)
148+
rake (13.0.1)
149+
retryable (3.0.5)
150+
rubyntlm (0.6.2)
151+
rubyzip (2.2.0)
152+
sawyer (0.8.2)
153+
addressable (>= 2.3.5)
154+
faraday (> 0.8, < 2.0)
155+
semverse (3.0.0)
156+
solve (4.0.3)
157+
molinillo (~> 0.6)
158+
semverse (>= 1.1, < 4.0)
159+
strings (0.1.8)
160+
strings-ansi (~> 0.1)
161+
unicode-display_width (~> 1.5)
162+
unicode_utils (~> 1.4)
163+
strings-ansi (0.2.0)
164+
syslog-logger (1.6.8)
165+
systemu (2.6.5)
166+
thor (1.0.1)
167+
tomlrb (1.2.9)
168+
train-core (3.2.14)
169+
json (>= 1.8, < 3.0)
170+
mixlib-shellout (>= 2.0, < 4.0)
171+
net-scp (>= 1.2, < 3.0)
172+
net-ssh (>= 2.9, < 6.0)
173+
train-winrm (0.2.6)
174+
winrm (~> 2.0)
175+
winrm-fs (~> 1.0)
176+
tty-box (0.5.0)
177+
pastel (~> 0.7.2)
178+
strings (~> 0.1.6)
179+
tty-cursor (~> 0.7)
180+
tty-color (0.5.1)
181+
tty-cursor (0.7.1)
182+
tty-prompt (0.20.0)
183+
necromancer (~> 0.5.0)
184+
pastel (~> 0.7.0)
185+
tty-reader (~> 0.7.0)
186+
tty-reader (0.7.0)
187+
tty-cursor (~> 0.7)
188+
tty-screen (~> 0.7)
189+
wisper (~> 2.0.0)
190+
tty-screen (0.7.1)
191+
unicode-display_width (1.6.1)
192+
unicode_utils (1.4.0)
193+
uuidtools (2.1.5)
194+
winrm (2.3.4)
195+
builder (>= 2.1.2)
196+
erubi (~> 1.8)
197+
gssapi (~> 1.2)
198+
gyoku (~> 1.0)
199+
httpclient (~> 2.2, >= 2.2.0.2)
200+
logging (>= 1.6.1, < 3.0)
201+
nori (~> 2.0)
202+
rubyntlm (~> 0.6.0, >= 0.6.1)
203+
winrm-fs (1.3.4)
204+
erubi (~> 1.8)
205+
logging (>= 1.6.1, < 3.0)
206+
rubyzip (~> 2.0)
207+
winrm (~> 2.0)
208+
wisper (2.0.1)
209+
wmi-lite (1.0.5)
210+
211+
PLATFORMS
212+
ruby
213+
214+
DEPENDENCIES
215+
berkshelf
216+
rake
217+
218+
BUNDLED WITH
219+
2.1.4

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.PHONY: all
2+
default: all;
3+
4+
clean:
5+
rm -rf .bundle
6+
rm -rf vendor
7+
rm -rf Gemfile.lock
8+
rm -rf Berksfile.lock
9+
10+
install:
11+
gem install bundler
12+
13+
bundle:
14+
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --retry=3

Rakefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
desc "Bundle install"
2+
task "bundle_install" do
3+
sh "make install"
4+
end
5+
6+
desc "Bundle build"
7+
task "bundle_build" do
8+
sh "make bundle"
9+
end
10+
11+
task :default => ["bundle_install", "bundle_build"]
12+

0 commit comments

Comments
 (0)