aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
* Create an example script for CI servers.Gravatar Andrew Z Allen2015-06-26
| | | | | | | | | | | | | This script looks at the files changed in git against origin/master and queries for all build and test targets associated with those files. Running this script on a CI server should allow you to only test the things that have changed since the last time your merged. -- Change-Id: I30d33e21eff370b795e1055c7150906f2a6782cd Reviewed-on: https://bazel-review.googlesource.com/#/c/1470 MOS_MIGRATED_REVID=96849243
* Make bazel compile error out when there's a run_silent command that failsGravatar Kristina Chodorow2015-06-25
| | | | | | | Also made it print the output for the problem command to make debugging easier. -- MOS_MIGRATED_REVID=96783685
* Support the --[no]master_bazelrc flagGravatar Damien Martin-Guillerez2015-06-25
| | | | | | | And get rid of usage of "blazerc" flags in our scripts. -- MOS_MIGRATED_REVID=96776423
* Disable tests that requires JDK 8 when using compile.shGravatar Damien Martin-Guillerez2015-06-24
| | | | | | | Also fix the OS X travis build file. -- MOS_MIGRATED_REVID=96683399
* Lower the requirement to Java 7Gravatar Damien Martin-Guillerez2015-06-19
| | | | | | | | | Now that we are using the error-prone javac, there is no need to impose Java 8. However, because some of our tests are targetting Java 8, developer should still use a JDK 8 to tests. -- MOS_MIGRATED_REVID=96400914
* Use --expunge to bazel clean for the deterministic testGravatar Damien Martin-Guillerez2015-06-19
| | | | | | | | | When doing the deterministic test on Bazel, some output files of previous compilation where still there and the result of the compilation wouldn't be perfect. -- MOS_MIGRATED_REVID=96396183
* Added /etc/bazel.bazelrc as a global Bazel's master rc.Gravatar Damien Martin-Guillerez2015-06-15
| | | | | | | | | | This will allow system-wide configuration for system-wide installation of Bazel. -- Change-Id: I71b7232e648f2690766c3b9184f863dc888524c0 Reviewed-on: https://bazel-review.googlesource.com/#/c/1540/ MOS_MIGRATED_REVID=95994630
* Get jdk.WORKSPACE into the default WORKSPACE file by reading it as a Java ↵Gravatar Lukacs Berki2015-06-15
| | | | | | | | | | | resource, then passing it to the parser as a string instead of putting it into embedded_binaries then passing a Path to it to the parser. This makes the upcoming default WORKSPACE rules for Android much more palatable. In particular, Android rules won't need to be special cased when building the Bazel binary because the contents are self-contained in BazelRuleClassProvider (and the jdk.WORKSPACE file, which is a simple Java resource) Even better would be not to use a string, but some kind of structured data, but that's probably more effort than it's worth. -- MOS_MIGRATED_REVID=95983199
* Improve platform and CPU detection, use the correct protoc binary for the ↵Gravatar Philipp Wollermann2015-06-12
| | | | | | | | | running system. Tested on OS X 10.10, Debian 8.1 (x86_64) and Debian 8.1 (i686). -- MOS_MIGRATED_REVID=95819163
* Fix permissions for zip filesGravatar Kristina Chodorow2015-06-12
| | | | | | | | | | | | | | | Now [new_]http_archive can be used for executables as well as "default permission" (644) files. This also gets rid of the Apache Commons Compress dependency entirely, which is nice. Fixing this also exposed some bugs in how archives were being decompressed (the same archive was being decompressed multiple times), which I also fixed by making the decompressors SkyFunctions. Fixes #238. -- MOS_MIGRATED_REVID=95747810
* Remove tools/jdk/jdk symbolic link creationGravatar Damien Martin-Guillerez2015-06-11
| | | | | | | | | | Skylark rules now depends completely on the external repository to access the JDK tooling. -- Change-Id: I48d461524d63d556bcd4af49f6ba2aecf1ed7068 Reviewed-on: https://bazel-review.googlesource.com/#/c/1500/ MOS_MIGRATED_REVID=95720688
* Fix order of redirection in compile.shGravatar Damien Martin-Guillerez2015-06-11
| | | | | | | | | | | This avoid having garbage warning when compiling Java code because we use the internal API of Javac. Also add a run_silent around the protobuf compilation. Fixes #239 -- MOS_MIGRATED_REVID=95707763
* Add _bazel file to source tree.Gravatar Cody Schroeder2015-06-11
| | | | | -- MOS_MIGRATED_REVID=95649084
* Update Bazel's protobuf from 2.5.0 to 3.0.0-alpha3 for proto3 support.Gravatar Philipp Wollermann2015-06-10
| | | | | -- MOS_MIGRATED_REVID=95639138
* Reorganized compile.shGravatar Damien Martin-Guillerez2015-06-10
| | | | | | | | | | | | | | | | Now the blessed Bazel binary is self-hosted and correctly labeled. All tools are also built using Bazel and labeled with the release. At the end of the compilation, the output folder only host the Bazel binary now. We use temporary folders to store the intermediate artifacts. Also integrated ./bootstrap_test.sh in compile.sh so there is only one script for everything regarding bootstraping Bazel. -- Change-Id: Idadbd075e7b8ecb6e306b919b7a73c647c5cfbae Reviewed-on: https://bazel-review.googlesource.com/#/c/1460/ MOS_MIGRATED_REVID=95625880
* Remove TODO now that Objective-C tooling has build filesGravatar Damien Martin-Guillerez2015-05-27
| | | | | -- MOS_MIGRATED_REVID=94466453
* Bazel's eclipse project generation: use query functionGravatar Damien Martin-Guillerez2015-04-23
| | | | | | | | This is not really a problem anymore because of latest change but it is error prone to leave it that way. -- MOS_MIGRATED_REVID=91782569
* Make the eclipse set-up more generic and support //external targetsGravatar Damien Martin-Guillerez2015-04-22
| | | | | | | | | | | | | | | | | | | | | With this change, other people might just copy the setup-eclipse.sh and get_project_path.sh scripts and adapt it to their workspace (change the variables at the top of the setup-eclipse.sh script) to generate an eclipse project. I tested it by replacing guava dependency in Bazel by a maven_jar and importing the project in Eclipse on OS X. It is incomplete because it actually filters out bind dependencies for generated java source but there might be some java generation in them if importing an other actual workspace. Let say that you have your project and you want to import targets from the Bazel workspace, the java library from generated sources won't be imported in the Eclipse classpath and the sources will be imported as source in the Eclipse classpath. -- MOS_MIGRATED_REVID=91696217
* Improved Eclipse support for the Bazel projectGravatar Damien Martin-Guillerez2015-04-20
| | | | | | | | | | | | | Now the paths are 100% determined using Bazel query. To adapt to another project, change the variables at the top of the setup-eclipse.sh file. It also handles correctly java_plugins now. Because we must do queries on the full workspace, it is not easy to embed in a bazel build. I made a prototype for it but it is really impractical. -- MOS_MIGRATED_REVID=91580472
* Added resources folder for IntelliJ project generationGravatar Damien Martin-Guillerez2015-04-20
| | | | | | | It was omitted in commit ee85e55ca03e945f7babb9a1c619a6a7bbfc1d51. -- MOS_MIGRATED_REVID=91529961
* Add support for creating an IntelliJ project.Gravatar Janak Ramakrishnan2015-04-19
| | | | | -- MOS_MIGRATED_REVID=91492842
* Set javabase for bash complete script generation.Gravatar Damien Martin-Guillerez2015-04-14
| | | | | | | | | This was failing under Linux because the PATH is unset. Fixes #113 -- MOS_MIGRATED_REVID=91021549
* Open-source Bazel bash completion scriptGravatar Damien Martin-Guillerez2015-04-10
| | | | | | | | | This script enable shell completion for Bazel inside the Bourne-again shell. Fixes #38 -- MOS_MIGRATED_REVID=90745457
* Fixed Eclipse .classpath generationGravatar Damien Martin-Guillerez2015-03-24
| | | | | | | | Ignoring objc_tools and adding exception to allow usage of any part of the JDK. The objc_tools will be unignored on OSX when the BUILD files are created for them. -- MOS_MIGRATED_REVID=89391467
* Fix of the .classpath generation under OS XGravatar Damien Martin-Guillerez2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89291020
* Added script to generate an Eclipse project for BazelGravatar Damien Martin-Guillerez2015-03-16
Now a developer can work on the Java sources by generating an Eclipse project with scripts/eclipse/setup.sh. The xcode tooling are also imported compared to the previously checked-in project resulting in a bunch of errors. -- MOS_MIGRATED_REVID=88548129