1

How can I set/get Clang build with extra tools on Travis CI?

I need Clang-Tidy and some other stuff from Clang for OS X testing.

tmsblgh
  • 517
  • 5
  • 21
  • You can [install it through APT](https://docs.travis-ci.com/user/installing-dependencies/) – набиячлэвэли Apr 08 '16 at 12:12
  • Can you help me how can I do it? – tmsblgh Apr 09 '16 at 11:16
  • 1
    Oh, with OSX you will probably need to use [Homebrew](https://docs.travis-ci.com/user/osx-ci-environment#Homebrew), sorry. You can install those tools via `brew install llvm --with-clang --with-clang-extra-tools` in the `install` step. – набиячлэвэли Apr 09 '16 at 12:25
  • I tried to install, but I got this message and error: "No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself." Can I use somehow a prebuilt binaries? And how can I install Clang with extra tools with APT for Linux? Thanks for your help! – tmsblgh Apr 09 '16 at 13:12
  • 1
    On Linux you can install Clang with APT like in [here](http://stackoverflow.com/a/35113462/2851815). As for OSX, supplying `-v` to `brew` might help. – набиячлэвэли Apr 09 '16 at 18:05
  • 1
    Building entire LLVM will take much longer than 10 minutes on Travis, so it's not recommended. Pre-build a binary and make Travis node download the clang-tidy binary from someplace. – Berkus Mar 20 '17 at 11:25

0 Answers0