albacore 2.8.0 → 3.0.0.pre.alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/albacore/cli.rb +2 -2
- data/lib/albacore/dsl.rb +2 -42
- data/lib/albacore/nuget_model.rb +173 -67
- data/lib/albacore/paket.rb +20 -5
- data/lib/albacore/paths.rb +1 -0
- data/lib/albacore/project.rb +228 -45
- data/lib/albacore/task_types/nugets_pack.rb +73 -425
- data/lib/albacore/task_types/sql_cmd.rb +1 -1
- data/lib/albacore/tasks/release.rb +2 -2
- data/lib/albacore/version.rb +1 -1
- data/spec/dsl_spec.rb +1 -1
- data/spec/nuget_model_spec.rb +208 -79
- data/spec/nugets_pack_spec.rb +1 -353
- data/spec/paket_spec.rb +51 -2
- data/spec/project_spec.rb +118 -43
- data/spec/shared_contexts.rb +28 -14
- data/spec/testdata/Project/Project.fsproj +1 -1
- data/spec/testdata/console-core-argu/.gitignore +4 -0
- data/spec/testdata/console-core-argu/.paket/Paket.Restore.targets +239 -0
- data/spec/testdata/console-core-argu/.paket/paket.exe +0 -0
- data/spec/testdata/console-core-argu/.paket/paket.targets +72 -0
- data/spec/testdata/console-core-argu/ConsoleArgu.fsproj +12 -0
- data/spec/testdata/console-core-argu/Library.fs +31 -0
- data/spec/testdata/console-core-argu/build.sh +4 -0
- data/spec/testdata/console-core-argu/paket.dependencies +3 -0
- data/spec/testdata/console-core-argu/paket.lock +565 -0
- data/spec/testdata/console-core-argu/paket.references +2 -0
- data/spec/testdata/console-core-argu/paket.template +1 -0
- metadata +26 -16
- data/lib/albacore/app_spec.rb +0 -229
- data/lib/albacore/cpack_app_spec.rb +0 -135
- data/lib/albacore/task_types/nugets.rb +0 -8
- data/lib/albacore/task_types/nugets_restore.rb +0 -181
- data/spec/app_spec_spec.rb +0 -147
- data/spec/fpm_app_spec_spec.rb +0 -157
- data/spec/nugets_find_gem_exe_spec.rb +0 -21
- data/spec/nugets_restore_spec.rb +0 -77
@@ -39,7 +39,7 @@ module Albacore
|
|
39
39
|
@name = name
|
40
40
|
@opts = Map.new(opts).apply \
|
41
41
|
pkg_dir: 'build/pkg',
|
42
|
-
|
42
|
+
paket_exe: '.paket/paket.exe',
|
43
43
|
nuget_source: 'https://www.nuget.org/api/v2/package',
|
44
44
|
clr_command: true,
|
45
45
|
depend_on: :versioning,
|
@@ -135,7 +135,7 @@ module Albacore
|
|
135
135
|
exe = @opts.get(:nuget_exe)
|
136
136
|
(! packages.empty?) or \
|
137
137
|
raise("You must have built your packages for version #{nuget_version}, use 'depend_on: :nuget_pkg'")
|
138
|
-
(File.exists?(exe)) or raise("You don't have a
|
138
|
+
(File.exists?(exe)) or raise("You don't have a paket.exe file to push with, expected path: #{exe}")
|
139
139
|
end
|
140
140
|
|
141
141
|
def committed?
|
data/lib/albacore/version.rb
CHANGED
data/spec/dsl_spec.rb
CHANGED
@@ -14,7 +14,7 @@ end
|
|
14
14
|
|
15
15
|
#puts "X has methods: #{X.new.private_methods.inspect}"
|
16
16
|
|
17
|
-
%w[nugets_restore nugets_pack asmver build
|
17
|
+
%w[nugets_restore nugets_pack asmver build].each do |sym|
|
18
18
|
method = :"#{sym}"
|
19
19
|
describe "that #{method}(*args, &block) is included when doing `require 'albacore'`" do
|
20
20
|
subject do
|
data/spec/nuget_model_spec.rb
CHANGED
@@ -4,6 +4,18 @@ require 'albacore/paths'
|
|
4
4
|
require 'albacore/nuget_model'
|
5
5
|
require 'albacore/application'
|
6
6
|
|
7
|
+
## Table of contents
|
8
|
+
#
|
9
|
+
# - Structure of Metadata
|
10
|
+
# - Package#to_xml
|
11
|
+
# - Package#from_xml
|
12
|
+
# - Package#from_xxproj_file (full fw)
|
13
|
+
# - Package#from_xxproj_file with metadata/title in proj file (full fw)
|
14
|
+
# - Package#with_metadata
|
15
|
+
# - Package#from_xxproj_file with packages.config (full fw)
|
16
|
+
# - Package#from_xxproj_file with dependent project (full fw)
|
17
|
+
#
|
18
|
+
|
7
19
|
describe Albacore::NugetModel::Metadata do
|
8
20
|
[ :id, :version, :authors, :title, :description, :summary, :language,
|
9
21
|
:project_url, :license_url, :release_notes, :owners,
|
@@ -14,64 +26,144 @@ describe Albacore::NugetModel::Metadata do
|
|
14
26
|
end
|
15
27
|
end
|
16
28
|
|
17
|
-
describe "
|
29
|
+
describe "adding dependency w/o group" do
|
18
30
|
before do
|
19
|
-
subject.add_dependency 'DepId', '
|
31
|
+
subject.add_dependency 'DepId', '[3.4.5, 4.0)', '', false
|
20
32
|
end
|
33
|
+
|
21
34
|
let :dep do
|
22
35
|
subject.dependencies['DepId']
|
23
36
|
end
|
24
|
-
|
25
|
-
|
37
|
+
|
38
|
+
it "contains the dependency version" do
|
39
|
+
expect(dep.version).to eq '[3.4.5, 4.0)'
|
26
40
|
end
|
27
|
-
|
41
|
+
|
42
|
+
it "contains the dependency id" do
|
28
43
|
expect(dep.id).to eq 'DepId'
|
29
44
|
end
|
30
|
-
|
45
|
+
|
46
|
+
it "has group=false from invocation" do
|
47
|
+
expect(dep.group).to eq false
|
48
|
+
end
|
49
|
+
|
50
|
+
it "defaults to target_framework=''" do
|
51
|
+
expect(dep.target_framework).to be_empty
|
52
|
+
end
|
53
|
+
|
54
|
+
it "contains only one dependency" do
|
31
55
|
expect(subject.dependencies.length).to eq 1
|
32
56
|
end
|
57
|
+
|
58
|
+
describe "#to_xml" do
|
59
|
+
let :xml do
|
60
|
+
subject.to_xml
|
61
|
+
end
|
62
|
+
|
63
|
+
it "generates a list" do
|
64
|
+
expect(xml).to include(" <dependencies>\n <dependency id=\"DepId\" version=\"[3.4.5, 4.0)\"/>")
|
65
|
+
end
|
66
|
+
end
|
33
67
|
end
|
34
68
|
|
35
|
-
describe "
|
69
|
+
describe "adding framework dependency" do
|
36
70
|
before do
|
37
71
|
subject.add_framework_dependency 'System.Transactions', '2.0.0'
|
38
72
|
end
|
73
|
+
|
39
74
|
let :dep do
|
40
75
|
subject.framework_assemblies.first[1]
|
41
76
|
end
|
77
|
+
|
42
78
|
it "should contain the dependency id" do
|
43
79
|
expect(dep.id).to eq('System.Transactions')
|
44
80
|
end
|
81
|
+
|
45
82
|
it "should contain the dependency version" do
|
46
83
|
expect(dep.version).to eq('2.0.0')
|
47
84
|
end
|
85
|
+
|
48
86
|
it "should contain a single dependency" do
|
49
87
|
expect(subject.framework_assemblies.length).to eq(1)
|
50
88
|
end
|
51
89
|
end
|
90
|
+
|
91
|
+
describe "when adding dependency w/ groups" do
|
92
|
+
before do
|
93
|
+
subject.add_dependency 'Dep', '[1.2.3, 2.0)', 'net461'
|
94
|
+
subject.add_dependency 'Dep', '[1.2.3, 2.0)', 'netstandard2.0'
|
95
|
+
end
|
96
|
+
|
97
|
+
it "has both deps" do
|
98
|
+
expect(subject.dependencies.length).to eq 2
|
99
|
+
end
|
100
|
+
|
101
|
+
it "rejects non-grouped dependencies (after grouped)" do
|
102
|
+
expect(lambda {
|
103
|
+
subject.add_dependency 'Hepp', '1.2.3', '', false
|
104
|
+
}).to raise_error(ArgumentError)
|
105
|
+
end
|
106
|
+
|
107
|
+
describe "#to_xml" do
|
108
|
+
let :xml do
|
109
|
+
subject.to_xml
|
110
|
+
end
|
111
|
+
|
112
|
+
it "generates a list" do
|
113
|
+
expected = <<XML
|
114
|
+
<dependencies>
|
115
|
+
<group targetFramework="net461">
|
116
|
+
<dependency id="DepId" version="[3.4.5, 4.0)" />
|
117
|
+
</group>
|
118
|
+
<group targetFramework="netstandard2.0">
|
119
|
+
<dependency id="DepId" version="[3.4.5, 4.0)" />
|
120
|
+
</group>
|
121
|
+
</dependencies>
|
122
|
+
XML
|
123
|
+
expect(Nokogiri::XML(xml, &:noblanks).to_xml).to \
|
124
|
+
include(Nokogiri::XML(StringIO.new(xml), &:noblanks).to_xml)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
describe "inverse rejection (no group, then group)" do
|
130
|
+
before do
|
131
|
+
subject.add_dependency 'Dep', '[1.2.3, 2.0)', '', false
|
132
|
+
end
|
133
|
+
|
134
|
+
it "rejects grouped dependencies (after non-grouped)" do
|
135
|
+
expect(lambda {
|
136
|
+
subject.add_dependency 'Hepp', '1.2.3', '', true
|
137
|
+
}).to raise_error(ArgumentError)
|
138
|
+
end
|
139
|
+
end
|
52
140
|
end
|
53
141
|
|
54
|
-
describe Albacore::NugetModel::Package, "
|
142
|
+
describe Albacore::NugetModel::Package, "#to_xml" do
|
55
143
|
it "should be newable" do
|
56
144
|
expect(subject).to_not be_nil
|
57
145
|
end
|
146
|
+
|
58
147
|
[:metadata, :files, :to_xml, :to_xml_builder].each do |prop|
|
59
148
|
it "should respond to #{prop}" do
|
60
149
|
expect(subject).to respond_to(prop)
|
61
150
|
end
|
62
151
|
end
|
152
|
+
|
63
153
|
it "should generate default metadata" do
|
64
154
|
expect(subject.to_xml).to include('<metadata')
|
65
155
|
end
|
156
|
+
|
66
157
|
it "should not generate default files" do
|
67
158
|
expect(subject.to_xml).to_not include('<files')
|
68
159
|
end
|
69
160
|
end
|
70
161
|
|
71
|
-
describe Albacore::NugetModel::Package, "
|
162
|
+
describe Albacore::NugetModel::Package, "#from_xml" do
|
72
163
|
let :dir do
|
73
164
|
File.basename(__FILE__)
|
74
165
|
end
|
166
|
+
|
75
167
|
let :xml do
|
76
168
|
<<XML
|
77
169
|
<?xml version="1.0" encoding="utf-8"?>
|
@@ -88,7 +180,12 @@ describe Albacore::NugetModel::Package, "from XML" do
|
|
88
180
|
<copyright>none</copyright>
|
89
181
|
<tags>example spec</tags>
|
90
182
|
<dependencies>
|
91
|
-
<
|
183
|
+
<group>
|
184
|
+
<dependency id="FSharp.Core" version="[4.1, 4.2)"/>
|
185
|
+
</group>
|
186
|
+
<group targetFramework="netstandard1.6">
|
187
|
+
<dependency id="System.Net" version="[1.1, 2.0)"/>
|
188
|
+
</group>
|
92
189
|
</dependencies>
|
93
190
|
</metadata>
|
94
191
|
<files>
|
@@ -113,14 +210,14 @@ XML
|
|
113
210
|
|
114
211
|
subject do
|
115
212
|
package = Albacore::NugetModel::Package.from_xml xml
|
116
|
-
#puts "node: #{package.inspect}"
|
117
|
-
#puts "node meta: #{package.metadata.inspect}"
|
118
213
|
package
|
119
214
|
end
|
120
|
-
|
215
|
+
|
216
|
+
it "exists" do
|
121
217
|
expect(subject).to_not be_nil
|
122
218
|
end
|
123
|
-
|
219
|
+
|
220
|
+
it "has identical metadata props" do
|
124
221
|
parser.
|
125
222
|
xpath('./ng:metadata', ns).
|
126
223
|
children.
|
@@ -134,7 +231,7 @@ XML
|
|
134
231
|
|
135
232
|
# on Windows this fails due to replacement of path separators (by design)
|
136
233
|
unless ::Albacore.windows?
|
137
|
-
it '
|
234
|
+
it 'roundtrips XML' do
|
138
235
|
expect(Nokogiri::XML(subject.to_xml, &:noblanks).to_xml).to \
|
139
236
|
eq(Nokogiri::XML(StringIO.new(xml), &:noblanks).to_xml)
|
140
237
|
end
|
@@ -153,11 +250,11 @@ XML
|
|
153
250
|
end
|
154
251
|
|
155
252
|
it "should have a dep on SampleDependency version 1.0" do
|
156
|
-
expect(subject.metadata.dependencies['
|
253
|
+
expect(subject.metadata.dependencies['FSharp.Core']).to_not be_nil
|
157
254
|
end
|
158
255
|
end
|
159
256
|
|
160
|
-
describe "
|
257
|
+
describe Albacore::NugetModel::Package, "#from_xxproj_file (full) => Package" do
|
161
258
|
let :projfile do
|
162
259
|
curr = File.dirname(__FILE__)
|
163
260
|
File.join curr, "testdata", "Project", "Project.fsproj"
|
@@ -185,22 +282,53 @@ describe "when reading xml from a fsproj file into Project/Metadata" do
|
|
185
282
|
expect(m.title).to eq 'Project'
|
186
283
|
end
|
187
284
|
|
188
|
-
describe "
|
285
|
+
describe "with sources" do
|
189
286
|
subject do
|
190
|
-
Albacore::NugetModel::Package.from_xxproj_file projfile, :
|
191
|
-
end
|
192
|
-
it "should contain all files (just one) and all dll and pdb+mdb files (two)" do
|
193
|
-
expect(subject.files.length).to eq 4
|
287
|
+
Albacore::NugetModel::Package.from_xxproj_file projfile, :sources => true
|
194
288
|
end
|
195
289
|
|
196
290
|
has_file 'Library1.fs', 'src/Library1.fs'
|
197
|
-
has_file 'bin/Debug/Project.dll', 'lib/
|
198
|
-
has_file 'bin/Debug/Project.pdb', 'lib/
|
199
|
-
|
291
|
+
has_file 'bin/Debug/Project.dll', 'lib/net451'
|
292
|
+
has_file 'bin/Debug/Project.pdb', 'lib/net451'
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
describe Albacore::NugetModel::Package, "#from_xxproj_file (core) => Package" do
|
297
|
+
let :projfile do
|
298
|
+
curr = File.dirname(__FILE__)
|
299
|
+
File.join curr, "testdata", "console-core-argu", "ConsoleArgu.fsproj"
|
300
|
+
end
|
301
|
+
|
302
|
+
subject do
|
303
|
+
Albacore::NugetModel::Package.from_xxproj_file projfile
|
304
|
+
end
|
305
|
+
|
306
|
+
include_context 'package_metadata_dsl'
|
307
|
+
|
308
|
+
let :frameworks do
|
309
|
+
subject
|
310
|
+
.metadata
|
311
|
+
.dependencies
|
312
|
+
.group_by { |k, dep| dep.target_framework }
|
313
|
+
.map { |g| g[0] }
|
314
|
+
end
|
315
|
+
|
316
|
+
it "targets netstandard2.0 and net461" do
|
317
|
+
expect(frameworks).to eq %w|netstandard2.0 net461|
|
318
|
+
end
|
319
|
+
|
320
|
+
it "has groups" do
|
321
|
+
h = subject.metadata.dependencies
|
322
|
+
h.each do |key, depspec|
|
323
|
+
expect(depspec.group).to eq true
|
324
|
+
end
|
200
325
|
end
|
326
|
+
|
327
|
+
has_file 'bin/Debug/net461/ConsoleArgu.dll', 'lib/net461'
|
328
|
+
has_file 'bin/Debug/netstandard2.0/ConsoleArgu.dll', 'lib/netstandard2.0'
|
201
329
|
end
|
202
330
|
|
203
|
-
describe "
|
331
|
+
describe Albacore::NugetModel::Package, "#from_xxproj_file (full) => Package w/ title" do
|
204
332
|
let :projfile do
|
205
333
|
curr = File.dirname(__FILE__)
|
206
334
|
File.join curr, "testdata", "Project", "ProjectWithTitle.fsproj"
|
@@ -229,7 +357,7 @@ describe "when reading xml from a fsproj file into Project/Metadata (with Id dif
|
|
229
357
|
end
|
230
358
|
end
|
231
359
|
|
232
|
-
describe Albacore::NugetModel::Package, "
|
360
|
+
describe Albacore::NugetModel::Package, "#with_metadata (full)" do
|
233
361
|
let :p1 do
|
234
362
|
p = Albacore::NugetModel::Package.new.with_metadata do |m|
|
235
363
|
m.id = 'A.B'
|
@@ -254,7 +382,7 @@ describe Albacore::NugetModel::Package, "overriding metadata" do
|
|
254
382
|
|
255
383
|
include_context 'package_metadata_dsl'
|
256
384
|
|
257
|
-
describe "when overriding
|
385
|
+
describe "when overriding" do
|
258
386
|
has_value :id, 'A.B.C'
|
259
387
|
has_value :owners, 'Henrik Feldt'
|
260
388
|
has_value :version, '2.1.3'
|
@@ -268,7 +396,7 @@ describe Albacore::NugetModel::Package, "overriding metadata" do
|
|
268
396
|
end
|
269
397
|
end
|
270
398
|
|
271
|
-
describe "
|
399
|
+
describe Albacore::NugetModel::Package, "(full) w/ packages.config" do
|
272
400
|
|
273
401
|
let :projfile do
|
274
402
|
curr = File.dirname(__FILE__)
|
@@ -278,38 +406,39 @@ describe "creating nuget (not symbols) from dependent proj file" do
|
|
278
406
|
subject do
|
279
407
|
Albacore::NugetModel::Package.from_xxproj_file projfile,
|
280
408
|
:known_projects => %w[Sample.Core],
|
281
|
-
:version => '2.3.0',
|
409
|
+
:version => '2.3.0', # TODO: [2.3.0, 3.0.0)
|
282
410
|
:configuration => 'Debug'
|
283
411
|
end
|
284
412
|
|
285
413
|
include_context 'package_metadata_dsl'
|
286
414
|
|
287
415
|
# from fsproj
|
288
|
-
has_dep 'Sample.Core', '2.3.0'
|
416
|
+
has_dep 'Sample.Core', '2.3.0', 'net40' # TODO: [2.3.0, 3.0.0)
|
289
417
|
|
290
418
|
# from packages.config
|
291
|
-
has_dep 'Magnum', '2.1.0'
|
292
|
-
has_dep 'MassTransit', '2.8.0'
|
293
|
-
has_dep 'Newtonsoft.Json', '5.0.6'
|
419
|
+
has_dep 'Magnum', '2.1.0', 'net40' # TODO: [2.3.0, 3.0.0)
|
420
|
+
has_dep 'MassTransit', '2.8.0', 'net40' # TODO: [2.3.0, 3.0.0)
|
421
|
+
has_dep 'Newtonsoft.Json', '5.0.6', 'net40' # TODO: [2.3.0, 3.0.0)
|
294
422
|
|
295
423
|
# actual nuspec contents
|
296
|
-
has_file 'bin/Debug/Sample.Commands.dll', 'lib/
|
297
|
-
has_file 'bin/Debug/Sample.Commands.xml', 'lib/
|
424
|
+
has_file 'bin/Debug/Sample.Commands.dll', 'lib/net40'
|
425
|
+
has_file 'bin/Debug/Sample.Commands.xml', 'lib/net40'
|
298
426
|
|
299
|
-
describe
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
427
|
+
describe "#to_template" do
|
428
|
+
let :template do
|
429
|
+
subject.to_template
|
430
|
+
end
|
431
|
+
|
432
|
+
it "contains all dependencies" do
|
433
|
+
expect(template).to include('dependencies')
|
434
|
+
expect(template).to include(' MassTransit ~> 2.8.0')
|
435
|
+
expect(template).to include(' Magnum ~> 2.1.0')
|
436
|
+
expect(template).to include(' Newtonsoft.Json ~> 5.0.6')
|
304
437
|
end
|
305
|
-
# actual nuspec contents
|
306
|
-
has_file 'bin/Debug/Sample.Commands.dll', 'lib/mono32'
|
307
|
-
has_file 'bin/Debug/Sample.Commands.xml', 'lib/mono32'
|
308
438
|
end
|
309
439
|
end
|
310
440
|
|
311
|
-
describe "
|
312
|
-
|
441
|
+
describe Albacore::NugetModel::Package, "(full) w/ dependent project" do
|
313
442
|
let :projfile do
|
314
443
|
curr = File.dirname(__FILE__)
|
315
444
|
File.join curr, "testdata", "TestingDependencies", "Sample.Commands",
|
@@ -331,11 +460,11 @@ describe "creating nuget on dependent proj file" do
|
|
331
460
|
describe 'without project_dependencies' do
|
332
461
|
# just as the opts in the main describe says
|
333
462
|
has_not_dep 'Sample.Core'
|
334
|
-
has_dep 'Magnum', '2.1.0'
|
335
|
-
has_dep 'MassTransit', '2.8.0'
|
336
|
-
has_dep 'Newtonsoft.Json', '5.0.6'
|
337
|
-
has_file 'bin/Debug/Sample.Commands.dll', 'lib/
|
338
|
-
has_file 'bin/Debug/Sample.Commands.xml', 'lib/
|
463
|
+
has_dep 'Magnum', '2.1.0', 'net40'
|
464
|
+
has_dep 'MassTransit', '2.8.0', 'net40'
|
465
|
+
has_dep 'Newtonsoft.Json', '5.0.6', 'net40'
|
466
|
+
has_file 'bin/Debug/Sample.Commands.dll', 'lib/net40'
|
467
|
+
has_file 'bin/Debug/Sample.Commands.xml', 'lib/net40'
|
339
468
|
has_not_file 'Library.fs'
|
340
469
|
end
|
341
470
|
|
@@ -348,12 +477,12 @@ describe "creating nuget on dependent proj file" do
|
|
348
477
|
end
|
349
478
|
|
350
479
|
# just as the opts in the main describe says
|
351
|
-
has_dep 'Sample.Core', '2.3.0'
|
352
|
-
has_dep 'Magnum', '2.1.0'
|
353
|
-
has_dep 'MassTransit', '2.8.0'
|
354
|
-
has_dep 'Newtonsoft.Json', '5.0.6'
|
355
|
-
has_file 'bin/Debug/Sample.Commands.dll', 'lib/
|
356
|
-
has_file 'bin/Debug/Sample.Commands.xml', 'lib/
|
480
|
+
has_dep 'Sample.Core', '2.3.0', 'net40'
|
481
|
+
has_dep 'Magnum', '2.1.0', 'net40'
|
482
|
+
has_dep 'MassTransit', '2.8.0', 'net40'
|
483
|
+
has_dep 'Newtonsoft.Json', '5.0.6', 'net40'
|
484
|
+
has_file 'bin/Debug/Sample.Commands.dll', 'lib/net40'
|
485
|
+
has_file 'bin/Debug/Sample.Commands.xml', 'lib/net40'
|
357
486
|
has_not_file 'Library.fs'
|
358
487
|
|
359
488
|
end
|
@@ -365,43 +494,43 @@ describe "creating nuget on dependent proj file" do
|
|
365
494
|
version: '2.3.0' }
|
366
495
|
end
|
367
496
|
|
368
|
-
has_dep 'Sample.Core', '2.3.0'
|
497
|
+
has_dep 'Sample.Core', '2.3.0', 'net40'
|
369
498
|
has_not_dep 'Magnum'
|
370
499
|
has_not_dep 'MassTransit'
|
371
500
|
has_not_dep 'Newtonsoft.Json'
|
372
|
-
has_file 'bin/Debug/Sample.Commands.dll', 'lib/
|
373
|
-
has_file 'bin/Debug/Sample.Commands.xml', 'lib/
|
501
|
+
has_file 'bin/Debug/Sample.Commands.dll', 'lib/net40'
|
502
|
+
has_file 'bin/Debug/Sample.Commands.xml', 'lib/net40'
|
374
503
|
has_not_file 'Library.fs'
|
375
504
|
end
|
376
505
|
|
377
|
-
describe 'without
|
506
|
+
describe 'without sources' do
|
378
507
|
let :opts do
|
379
|
-
{
|
508
|
+
{ sources: false,
|
380
509
|
known_projects: %w[Sample.Core],
|
381
510
|
version: '2.3.0' }
|
382
511
|
end
|
383
|
-
has_dep 'Sample.Core', '2.3.0'
|
384
|
-
has_dep 'Magnum', '2.1.0'
|
385
|
-
has_dep 'MassTransit', '2.8.0'
|
386
|
-
has_dep 'Newtonsoft.Json', '5.0.6'
|
387
|
-
has_file 'bin/Debug/Sample.Commands.dll', 'lib/
|
388
|
-
has_file 'bin/Debug/Sample.Commands.xml', 'lib/
|
512
|
+
has_dep 'Sample.Core', '2.3.0', 'net40'
|
513
|
+
has_dep 'Magnum', '2.1.0', 'net40'
|
514
|
+
has_dep 'MassTransit', '2.8.0', 'net40'
|
515
|
+
has_dep 'Newtonsoft.Json', '5.0.6', 'net40'
|
516
|
+
has_file 'bin/Debug/Sample.Commands.dll', 'lib/net40'
|
517
|
+
has_file 'bin/Debug/Sample.Commands.xml', 'lib/net40'
|
389
518
|
has_not_file 'Library.fs'
|
390
519
|
end
|
391
520
|
|
392
|
-
describe 'with
|
521
|
+
describe 'with sources' do
|
393
522
|
let :opts do
|
394
|
-
{
|
523
|
+
{ sources: true,
|
395
524
|
known_projects: %w[Sample.Core],
|
396
525
|
version: '2.3.0' }
|
397
526
|
end
|
398
|
-
has_dep 'Sample.Core', '2.3.0'
|
399
|
-
has_dep 'Magnum', '2.1.0'
|
400
|
-
has_dep 'MassTransit', '2.8.0'
|
401
|
-
has_dep 'Newtonsoft.Json', '5.0.6'
|
402
|
-
|
403
|
-
has_file 'bin/Debug/Sample.Commands.dll', 'lib/
|
404
|
-
has_file 'bin/Debug/Sample.Commands.pdb', 'lib/
|
527
|
+
has_dep 'Sample.Core', '2.3.0', 'net40'
|
528
|
+
has_dep 'Magnum', '2.1.0', 'net40'
|
529
|
+
has_dep 'MassTransit', '2.8.0', 'net40'
|
530
|
+
has_dep 'Newtonsoft.Json', '5.0.6', 'net40'
|
531
|
+
has_file 'bin/Debug/Sample.Commands.xml', 'lib/net40'
|
532
|
+
has_file 'bin/Debug/Sample.Commands.dll', 'lib/net40'
|
533
|
+
has_file 'bin/Debug/Sample.Commands.pdb', 'lib/net40'
|
405
534
|
has_file 'Library.fs', 'src/Library.fs'
|
406
535
|
end
|
407
536
|
|
@@ -419,6 +548,6 @@ describe "creating nuget on dependent proj file" do
|
|
419
548
|
has_not_file 'bin/Debug/Sample.Commands.dll'
|
420
549
|
has_not_file 'bin/Debug/EmptyProject.dll'
|
421
550
|
has_not_file 'bin/Debug/EmptyProject.xml'
|
422
|
-
has_file 'bin/Release/EmptyProject.dll', 'lib/
|
551
|
+
has_file 'bin/Release/EmptyProject.dll', 'lib/net40'
|
423
552
|
end
|
424
|
-
end
|
553
|
+
end
|