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.
Buck is a build tool that supports multiple programming languages. Although Buck was originally created for the Android ecosystem, it now works across many platforms such as iOS, . NET and others. This tool was designed for fast iteration allowing developers to compile and run their changes quickly.
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)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With