我可以使用 Biicode 在 Travis 上安装 GCC 4.9 和 Clang 3.5 吗?

Can I use Biicode to install GCC 4.9 and Clang 3.5 on Travis?

目前,除了我的 .travis.yml 文件外,以下内容:

before_install:
  - wget http://apt.biicode.com/install.sh && chmod +x install.sh && ./install.sh
  - bii setup:cpp

产生以下输出:

$ bii setup:cpp
WARN: This setup is EXPERIMENTAL.
Please refer to the docs for manual installation if something fails
cmake version 2.8.7
Invalid cmake version 2.8.7 < 3.0 in your path
WARN: You are running in non-interactive mode.
A CMake local copy will be installed automatically.
Please run with '-i' or '--interactive' for more options
Downloading and installing CMake 3.0.2
Download  cmake-3.0.2-Linux-64.tar.gz
from  https://s3.amazonaws.com/biibinaries/thirdparty/cmake-3.0.2-Linux-64.tar.gz
download to  /tmp/tmpuO7mZ_/cmake-3.0.2-Linux-64.tar.gz
Percent: [########################################] 100.0% of 10.1Mb Done...
INFO: Extracting cmake
cmake version 3.0.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Valid cmake version 3.0.2 > 3.0 in "/home/travis/.biicode/cmake-3.0.2-Linux-64/bin"
CMake 3.0.2 installed ok
gcc 4.6.3 already installed
g++ 4.6.3 already installed

我已经检查了 bii setup:cpp 命令的选项,但似乎找不到任何相关信息,我是否遗漏了什么,或者我必须将它们安装到 bii 外部吗?

不。命令 bii setup:cpp 非常基础,仅适用于 C++ 新手和基于主流 gcc 的编译器的快速基本设置。可以查看源码:https://github.com/biicode/client/blob/develop/setups/installers/gnu_compiler_installer.py#L9

  • 在 Win 中它将安装 MinGW 4.8
  • 在 Ubuntu 中,它将安装发行版 build-essential,最新的 Ubuntu 应该是 gcc 4.8.2
  • 在 Mac 中,它将安装标准的 XCode,以及主流的 CLang 发行版。

如果你想在 travis-ci 中安装那些编译器,有时会非常棘手。我建议使用 https://github.com/biicode/misc 中的脚本。您可能可以直接获取它们并从您的 travis 构建中执行。