2014-02-25 39 views
2

我回到試圖獲得一些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這裏:

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. 

有什麼錯呢?

+0

我不是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

回答

1

因此斜槓無關緊要,在shell腳本內部運行並不重要,我認爲你應該工作。

問題是NuGet.exe版本檢入您的資源庫是一些舊版本的nuget,它不是單聲道兼容的。從https://nuget.org/nuget.exe下載最新版本,或者如果您有支持nuget的版本,則可以使用NuGet.exe update --self

+0

正在進行的測試https://travis-ci.org/Heather/Failess/builds/19627567 – Cynede

相關問題