aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
...
* Fix //scripts/release:release_testGravatar Damien Martin-Guillerez2015-07-30
| | | | | | | Fixes #341 -- MOS_MIGRATED_REVID=99458831
* Disable failing Bazel release test so that we can push.Gravatar Lukacs Berki2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99383290
* Bazel release process scriptsGravatar Damien Martin-Guillerez2015-07-29
| | | | | | | | | | | | | | | | | | Those scripts are made to handle the soon to be Bazel release process. It is still missing the CI part that deploys built artifacts and sends announcement mails. It uses the RELNOTES: tag (RELNOTES for a simple change, RELNOTES[NEW] for a new feature, RELNOTES[INC] for an incompatible change) to create the CHANGELOG.md file. The main entry point is scripts/release/release.sh and should be the only script called directly. -- Change-Id: I6e066fda4d862ce793cc03dc8bdf0b8cb34f7c2c Reviewed-on: https://bazel-review.googlesource.com/#/c/1580/ MOS_MIGRATED_REVID=99282250
* Create a binary packager for BazelGravatar Damien Martin-Guillerez2015-07-29
| | | | | | | | | | | | | | | | | This packager can be called by the release scripts to generate a self-extractable bash installer for Bazel. This script was tested by hand as extra arguments can be specified to change the default install of Bazel (default is system-wide and with the argument you can make a user install). This will be the only packager for now since GitHub is offering the possibility to download the source tree as a ZIP. Hopefully, before the end of the year we could build some more package kind. -- Change-Id: I1a2d0cd39b9e4adcaf6c984ec4c855a04213b61a Reviewed-on: https://bazel-review.googlesource.com/1581 MOS_MIGRATED_REVID=99258828
* Make intellij setup not recompile bazel quite as muchGravatar Kristina Chodorow2015-07-27
| | | | | | | | | Also removed tools/jdk/jdk check (as it's not created anymore) added dash to the excluded dirs. Fixes #295. -- MOS_MIGRATED_REVID=99175421
* Release note scripts: fix fmt usage under LinuxGravatar Damien Martin-Guillerez2015-07-27
| | | | | | | | | | | For some strange reason fmt do not try to fill the line by default under GNU/Linux. This is using a wrapper around fmt to fix //scripts/release:relnotes_test on Linux. Fixes #331. -- MOS_MIGRATED_REVID=99165254
* Add --noshow_progress when performing queries in the CI script.Gravatar Erik Kuefler2015-07-27
| | | | | | | | | | Progress messages here mostly consist of package loading messages that aren't very interesting in this context. -- Change-Id: Ifee2ce5979ea47eb06cff199670fc5ed2218c139 Reviewed-on: https://bazel-review.googlesource.com/#/c/1730/ MOS_MIGRATED_REVID=99163320
* Bazel release notes creationGravatar Damien Martin-Guillerez2015-07-27
| | | | | | | | | | | | This script uses the RELNOTES: tag (RELNOTES for a simple change, RELNOTES[NEW] for a new feature, RELNOTES[INC] for an incompatible change) to create the CHANGELOG.md file. -- Change-Id: If457a0a85f4a9ceddf822393d0aeb8b60c54136b Reviewed-on: https://bazel-review.googlesource.com/#/c/1583/ MOS_MIGRATED_REVID=99020942
* Use blaze_util_mingw.cc for bootstrapping on Windows.Gravatar Dmitry Lomov2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99015580
* Wrap zip step into run_silent in compile.shGravatar Damien Martin-Guillerez2015-07-23
| | | | | | | | | Ordering of message were confusing if the zip step was failing. Fixes #319 -- MOS_MIGRATED_REVID=98932569
* Set up protobuf compilers on Windows correctly for bootstrapping.Gravatar Googler2015-07-23
| | | | | -- MOS_MIGRATED_REVID=98815600
* Adds main/java/src to the base workspace. This is to enable ↵Gravatar Alex Humesky2015-07-23
| | | | | | | src/tools/android/java/com/google/devtools/build/android:android_builder_lib to depend on src/main/java:options. -- MOS_MIGRATED_REVID=98772591
* Update setup-intellij to get it working again.Gravatar Janak2015-07-13
| | | | | | | | | | | | | | | | This is just based on what I had to do to get IntelliJ working with Bazel at head, but I think it makes things simpler as well. Main changes: * External jars are supported (I think); * Protobufs are imported en masse via a "directory" module library; * We now include all Android files unless it looks like we won't be able to compile them. -- Change-Id: Ib2ce59f6636f0d262b05f89d57837d7018a0fbfc Reviewed-on: https://bazel-review.googlesource.com/1611 MOS_MIGRATED_REVID=98118522
* Adds gen jar and manifest proto outputs.Gravatar Alex Humesky2015-07-10
| | | | | | | Adds a jar output to Java and Android rules which contains the class files for source files generated from Java annotation processors. For a java_binary foo, the jar will be foo-gen.jar, and for a java_library foo the jar will be libfoo-gen.jar, and similarly for Android. Also adds a binary serialized proto manifest file output to Java and Android rules which describes the contents of the output class jar of those rules, which is used to create the -gen.jar. See src/main/protobuf/java_compilation.proto. -- MOS_MIGRATED_REVID=97793715
* Make intellij-setup.sh work again. Gravatar Lukacs Berki2015-07-02
| | | | | | | As a drive-by fix, add correct deps to //src/test/java:skylarkshell . Why don't we build that in our tests? -- MOS_MIGRATED_REVID=97404777
* rm -rf "${base_workspace}/src" since it is a directory.Gravatar David Chen2015-07-02
| | | | | | | Fixes #272 -- MOS_MIGRATED_REVID=97402007
* Link in src/tools/android to base_workspace.Gravatar Lukacs Berki2015-06-30
| | | | | | | This fixes #267 to some degree. An update to the tools/ directory will still be required. -- MOS_MIGRATED_REVID=97228079
* Update CI script to build against a common ancestor of origin/master and HEADGravatar Thomas Broyer2015-06-29
| | | | | | | | | | Also give advice for some changes to make to the script depending on the environment and events triggering the script. -- Change-Id: Ic230d96c29785c8df392b72fc4809eb7703fafff Reviewed-on: https://bazel-review.googlesource.com/#/c/1570/ MOS_MIGRATED_REVID=97118314
* 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