I am trying to build tests with Buck using buck test
C++ targets on Travis CI servers (through GitHub), but there are two things that I am not able to figure out.
brew tap facebook/fb && brew install buck
and I would be done..buckconfig
file in the repository. This however only accepts an absolute path to the compiler to use. Travis CI configurations seem to only provide an environment variable which contains the path to the compiler. Environment variables however cannot be used in the .buckconfig
. Is there a way I can install a compiler (one that fully supports C++14) and get the path at which it is installed on the Travis server?I highlighted the questions so that it's easier for people who do not have experience with all the things that I mentioned (Buck and Travis CI) to still answer the question.
How can I use OS X servers instead of Ubuntu ones?
That should be what the os
directive is for.
Value has to be
linux
(default) orosx
; or one of the known aliases:
ubuntu
for linux,mac
for osx ormacos
for osx
(Ironically, buck
itself has its own tavis.yml.)
Environment variables however cannot be used in the
.buckconfig
.
You could either:
.buckconfig
to replace a fixed path by the actual one from the environment variable.cxx_...()
rule by a genrule()
in which you can specify the command you want (and benefit from certain environment variable substitution)