2017-10-10 1 views
1

私のプロジェクトをtravis上でビルドするのに問題があります。それはトラビスがサポートすべき迅速な4で書かれています。依存関係を取得する際に問題が発生するようですが、「自分のマシンで動作します。 swift buildswift test少なくとも私はトラビス側で何が問題になっているのか苦労しています。Travis-ciの問題、依存関係を取得できないSwift Package Manager

誰もが似たような問題を扱っていて、何が間違っているのか知っていますか?

YAML

os: 
    - osx 
language: swift 
osx_image: xcode9 
script: 
    - swift build 
    - swift test 

出力

11.10s$ swift build 
Cloning https://github.com/valdirunars/BigIntCompress.git 
error: terminated(128): git clone --shared/Users/travis/build/valdirunars/BioSwift/.build/repositories/BigIntCompress.git-5255985680209734865/Users/travis/build/valdirunars/BioSwift/.build/checkouts/BigIntCompress.git-5255985680209734865 
error: product dependency 'BigInt' not found 
error: product dependency 'BigIntCompress' not found 
The command "swift build" exited with 1. 
0.58s$ swift test 
Cloning https://github.com/valdirunars/BigIntCompress.git 
error: terminated(128): git clone --shared  /Users/travis/build/valdirunars/BioSwift/.build/repositories/BigIntCompress.git-5255985680209734865 /Users/travis/build/valdirunars/BioSwift/.build/checkouts/BigIntCompress.git-5255985680209734865 
error: product dependency 'BigInt' not found 
error: product dependency 'BigIntCompress' not found 
The command "swift test" exited with 1. 
Done. Your build exited with 1. 

答えて

1

は、それが(.ymlに)script段階でだとき、フェッチ依存関係に失敗したトラヴィスが判明

ソリューションはinstallを追加しましたすべての依存関係がフェッチされます。

os: 
    - osx 
language: swift 
osx_image: xcode9 
install: swift package update 
script: 
    - swift build 
    - swift test