Use --config to tell bazel about the environment.

Instead of importing a well-known file. This gives toktok-stack more
freedom in where and how it wants to define its interface, as long as it
provides the configurations requested ("linux" and "clang").
This commit is contained in:
iphydf 2018-08-14 20:34:24 +00:00
parent 52dd5575ab
commit fc34fee59a
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -10,7 +10,8 @@ travis_install() {
chmod +x bazel-0.15.0-installer-linux-x86_64.sh
./bazel-0.15.0-installer-linux-x86_64.sh --user
echo 'build --jobs=4 --curses=no --verbose_failures' >> $HOME/.bazelrc
echo "import %workspace%/tools/bazelrc/linux-$CC" >> $HOME/.bazelrc
echo 'build --config=linux' >> $HOME/.bazelrc
echo "build --config=$CC" >> $HOME/.bazelrc
}
travis_script() {