Skip to content

Commit

Permalink
(build) Let Travis CI restore packages first
Browse files Browse the repository at this point in the history
In the documentation (http://docs.travis-ci.com/user/languages/csharp/#NuGet)
Travis CI should restore nuget packages automatically with the keyword
solution. Script overrides xbuild and performs the build action requested
instead. This ensures that packages have been restored already for
compile.pre.step.
  • Loading branch information
ferventcoder committed Jan 25, 2015
1 parent d0ccdd0 commit 6afb1c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .build/compile.step
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
commandline="${solution.path} /nologo /property:OutputPath='${msbuild.outputpath}' /property:Configuration=${msbuild.configuration} /verbosity:minimal /noconsolelogger /target:Clean" if="${microsoft.framework.specific != 'mono-4.0'}" />
<echo level="Warning" message="Building..." />
<echo level="Warning" message="Working directory ${dirs.build}" />
<echo level="Warning" message="Running ${app.xbuild} ${solution.path} /nologo /property:OutputPath='${msbuild.outputpath}' /property:Configuration=${msbuild.configuration} /verbosity:detailed /toolsversion:${framework::get-version(microsoft.framework.specific)} /property:Platform='${msbuild.platform}' /property:TargetFrameworkProfile='' /property:TargetFrameworkVersion=v${framework::get-version(microsoft.framework.specific)} /l:${msbuild.logger};'${dirs.build_results}${path.separator}msbuild-${microsoft.framework.specific}-results.xml'" />
<echo level="Warning" message="Running ${app.xbuild} ${solution.path} /nologo /property:OutputPath='${msbuild.outputpath}' /property:Configuration=${msbuild.configuration} /verbosity:detailed /toolsversion:${framework::get-version(microsoft.framework.specific)} /property:Platform='${msbuild.platform}' /property:TargetFrameworkVersion=v${framework::get-version(microsoft.framework.specific)} /l:${msbuild.logger};'${dirs.build_results}${path.separator}msbuild-${microsoft.framework.specific}-results.xml'" />
<exec program="${app.xbuild}"
basedir="/usr/bin"
workingdir="${dirs.build}"
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: csharp
solution: src/chocolatey.sln
install:
- sudo apt-get install mono-devel mono-gmcs nunit-console
before_script:
Expand Down

0 comments on commit 6afb1c9

Please sign in to comment.