Skip to content

Commit

Permalink
Compile Expecto.netcore via Rake build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchester committed Feb 19, 2017
1 parent c4cc3e5 commit 3071e4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
language: csharp

matrix:
Expand Down
12 changes: 10 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,23 @@ task :restore_quick do
system 'tools/paket.exe', 'restore', clr_command: true
end

task :restore_dotnetcli do
system "dotnet", %W|restore Expecto.netcore/Expecto.netcore.fsproj|
end

desc 'restore all nugets as per the packages.config files'
task :restore => [:paket_bootstrap, :restore_quick, :paket_files]
task :restore => [:paket_bootstrap, :restore_quick, :paket_files, :restore_dotnetcli]

desc 'Perform full build'
build :compile => [:versioning, :restore, :assembly_info] do |b|
build :compile => [:versioning, :restore, :assembly_info, :build_dotnetcli] do |b|
b.prop 'Configuration', Configuration
b.sln = 'Expecto.Tests/Expecto.Tests.fsproj'
end

task :build_dotnetcli => [:versioning, :restore_dotnetcli, :assembly_info] do
system "dotnet", %W|build -c #{Configuration} -f netstandard1.6 Expecto.netcore/Expecto.netcore.fsproj|
end

directory 'build/pkg'

desc 'package nugets - finds all projects and package them'
Expand Down

0 comments on commit 3071e4d

Please sign in to comment.