安装自制瓶装二进制包

时间:2016-10-26 09:00:34

标签: macos homebrew travis-ci

我需要加速我需要的travis包生成     brew install fftw --with-openmp

需要大约20分钟才能建成,大部分时间Travis都会杀死我的工作。

我的想法是创建另一个repo,其中(偶尔)我生成fftw --with-openmp的二进制瓶装版本,然后从我的应用程序repo中输出特定的瓶装版本。我被困在最后一部分......

我创建了一个链接到travis(https://github.com/iltommi/fftw-openmp)的空仓库,其中我只有一个.travis.yml

os: osx

osx_image: xcode7.1

sudo: required

script:
 - export COMPILER=g++-6
 - brew update; brew tap homebrew/science
 - brew install --build-bottle fftw --with-openmp
 - brew bottle fftw
 - export RELEASE_FILE=$(ls fftw*bottle*.tar.gz)
 - ls -la

deploy:
  provider: releases
  edge:
    branch: releases-fix
  api_key: $github_token
  file: "${RELEASE_FILE}"
  skip_cleanup: true
  overwrite: true

所以我在发布中获得了一个文件(https://github.com/iltommi/fftw-openmp/releases

现在,如何从我的其他仓库安装? 我可以通过wget获得它然后呢?

由于

1 个答案:

答案 0 :(得分:2)

看起来这里已经回答https://apple.stackexchange.com/a/204833/99311

我会留下这个以防其他人在stackoverflow上需要这个:

brew install -f fftw-3.3.5.yosemite.bottle.1.tar.gz

其中fftw-3.3.5.yosemite.bottle.1.tar.gz是由命令生成的文件

brew install --build-bottle fftw --with-openmp
brew bottle fftw
相关问题