我回到試圖獲得一些F#項目要建立,能夠與特拉維斯-CI無法獲得的NuGet從特拉維斯命令行工作
陽明:
language: objective-c
env:
global:
- EnableNuGetPackageRestore=true
matrix:
- MONO_VERSION="3.2.6"
before_install:
- wget "http://download.xamarin.com/MonoFrameworkMDK/Macx86/MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg"
- sudo installer -pkg "MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg" -target/
- mozroots --import --sync
script:
- mono "packages\\NuGet\\NuGet.exe" install Failess -OutputDirectory packages -ExcludeVersion -Prerelease
- mono "packages\\Failess\\tools\\Failess.exe" "build.fsx"
但即使失敗的NuGet這裏:
-
個
特拉維斯:https://travis-ci.org/Heather/Failess/builds/19554098
$單 「包\的NuGet \ NuGet.exe」 安裝Failess -OutputDirectory包-ExcludeVersion -PRERELEASE
ApplicationName='/Users/travis/.local/share/NuGet/NuGet.exe', CommandLine='install Failess -OutputDirectory packages -ExcludeVersion -Prerelease' , CurrentDirectory='/Users/travis/build/Heather/Failess' , Native error= Cannot find the specified file The command "mono "packages\NuGet\NuGet.exe" install Failess -OutputDirectory packages -ExcludeVersion -Prerelease" exited with 1.
有什麼錯呢?
我不是Travis的專家,但我能夠讓我的項目在Travis上進行單元測試。我不知道它是否有所作爲,但我在nuget電話中沒有引號。 ''如果[! -f packages/FAKE/tools/Fake.exe];然後 mono --runtime = v4.0 .NuGet/NuGet.exe安裝FAKE -OutputDirectory包-ExcludeVersion -Prerelease ''爲了參考我的.travis.yml文件位於:https://github.com/mndrake/Arcadia /blob/master/.travis.yml – mndrake