尽管我已经实现了步骤described in the instructions
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'在my travis.yaml这些fail中,当我尝试在macOS上使用
jobs:
include:
...
- name: "LTS 9.6 (Haskell for macOS)"
os: osx
osx_image: xcode10
env: ...
...使用
tar: Option --wildcards is not supported
Usage:
List: tar -tf <archive-filename>
Extract: tar -xf <archive-filename>
Create: tar -cf <archive-filename> [filenames...]
Help: tar --help
curl: (23) Failed writing body (0 != 597)
The command "curl -L https://www.stackage.org/stack/linux-x86_64" failed. Retrying, 2 of 3.
curl: (23) Failed writing body (0 != 597)
The command "curl -L https://www.stackage.org/stack/linux-x86_64" failed. Retrying, 3 of 3.
curl: (23) Failed writing body (0 != 597)
The command "curl -L https://www.stackage.org/stack/linux-x86_64" failed 3 times.如何修改travis.yaml jobs.include和before_install以安装适用于macOS的堆栈?
发布于 2018-10-14 03:44:09
有几件事。
travis_retry,因为curl有更好的--retry flag,tar,而不是tar。您可以选择:gnu-tar上都有效的通用标志,然后使用它。(如果您希望以correctly.)的身份执行此公式,则它需要的不仅仅是brew install gnu-tar,因此请确保将其设置为tar
https://stackoverflow.com/questions/52796255
复制相似问题