aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
* Set Bazel's workspace nameGravatar Kristina Chodorow2016-04-27
| | | | | | | | | | RELNOTES: Bazel's workspace name is now io_bazel. If you are using Bazel's source as an external repository, then you may want to update the name you're referring to it as or you'll begin seeing warnings about name mismatches in your code. -- MOS_MIGRATED_REVID=120926179
* Remove running tests on Windows bot.Gravatar Dmitry Lomov2016-04-27
| | | | | | | | Fixing uncovered issues takes longer than expected: diabling tests to reduce CI noise. -- MOS_MIGRATED_REVID=120898842
* Fix release test after commit e7be839Gravatar Damien Martin-Guillerez2016-04-25
| | | | | | | | | Fixes #1187. -- Change-Id: I36e87d86926a38785dcd98c841db826c518cc575 Reviewed-on: https://bazel-review.googlesource.com/3463 MOS_MIGRATED_REVID=120710112
* Windows build: propagate retCode from tests.Gravatar Dmitry Lomov2016-04-25
| | | | | | | Helps with #1182. -- MOS_MIGRATED_REVID=120695171
* Failing tests on Windows shouldn't fail the build.Gravatar Dmitry Lomov2016-04-25
| | | | | | | Helps with #1182. -- MOS_MIGRATED_REVID=120686181
* Add a "Cherry picks" line to the release notesGravatar Kristina Chodorow2016-04-22
| | | | | | | | I was confused about the bulleted list on 0.2.2, so I figured it would be nice tell people what the commit list is. -- MOS_MIGRATED_REVID=120577721
* Wire up --host_java_toolchainGravatar Liam Miller-Cushon2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120574676
* Run our first test on Windows.Gravatar Dmitry Lomov2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120545193
* Fix the release tests after rollback of commit ↵Gravatar Damien Martin-Guillerez2016-04-22
| | | | | | | 9e4c78fb5752fa554db82815f7336255831a95ab -- MOS_MIGRATED_REVID=120540000
* Automated [] rollback of commit 857cda2c45a5cc68c3fa398311c48c571a64915d and ↵Gravatar Damien Martin-Guillerez2016-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | commit 790d2f6009d47fe92cf0cd92a1473bbf0141f32e. *** Reason for rollback *** Broke non-Bazel projects on ci.bazel.io Fixes #1168 *** Original change description *** Move the runfiles for external repositories to under the x.runfiles/ directory This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles.... *** -- MOS_MIGRATED_REVID=120535721
* Fix Bazel JDK 7 buildGravatar Damien Martin-Guillerez2016-04-21
| | | | | | | | Once and for all, I tested it and re-tested should be good. -- MOS_MIGRATED_REVID=120381352
* Fix release test with repository issueGravatar Damien Martin-Guillerez2016-04-21
| | | | | | | I properly tested it this time. -- MOS_MIGRATED_REVID=120339101
* Refactor JDK 7 build to use the vendored version of itGravatar Damien Martin-Guillerez2016-04-20
| | | | | | | | | | | | | Along the path, fix the build for JDK 7 and get rid of most ugliness in the JDK 7 build. Now simply setting JAVA_VERSION to 1.7 will build a JDK 7 compatible version. Fixes #1159. -- Change-Id: I9599283844a57d9e053f12d37445907f22a9232e Reviewed-on: https://bazel-review.googlesource.com/#/c/3452 MOS_MIGRATED_REVID=120332747
* Add the repository name prefix to release test environmentGravatar Damien Martin-Guillerez2016-04-20
| | | | | | | This test is now failing on ci.bazel.io -- MOS_MIGRATED_REVID=120328587
* Do not include javac and JavaBuilder in the bootstrap pathGravatar Damien Martin-Guillerez2016-04-20
| | | | | | | -- Change-Id: I5377f694bd6dc426d41feef75cd35145c3b47c2f Reviewed-on: https://bazel-review.googlesource.com/#/c/3450/ MOS_MIGRATED_REVID=120323262
* Update IDE setup script to only query rdeps in built universe.Gravatar Janak Ramakrishnan2016-04-20
| | | | | | | | | | | This avoids problems when some of the universe doesn't build, and should make the IDE setup script a bit faster. Also use --keep_going in query so that any future breakages don't break IDE setup. -- Change-Id: If9bf30ca5d63f9d9a3455cbbb78b7139a3e5324d Reviewed-on: https://bazel-review.googlesource.com/3430 MOS_MIGRATED_REVID=120250626
* Fixed bugs blocking bazel shell test on WindowsGravatar Yun Peng2016-04-20
| | | | | | | -- Change-Id: I6a2f9026fda578905ccb72b317223eaca16b882b Reviewed-on: https://bazel-review.googlesource.com/#/c/3440 MOS_MIGRATED_REVID=120228541
* Move the runfiles for external repositories to under the x.runfiles/ directoryGravatar Kristina Chodorow2016-04-20
| | | | | | | | | | | | | | | This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles. --- Furthermore, if a Bazel project does not provide a workspace name in the WORKSPACE file, Bazel will now default to using __main__ as the workspace name (instead of "", as previously). The repository's runfiles will appear under x.runfiles/__main__/. -- MOS_MIGRATED_REVID=120224534
* Deprecate top-level Java toolchain flags in favour of java_toolchainGravatar Liam Miller-Cushon2016-04-19
| | | | | | | | | | | | | This change disables --java_langtools, --javabuilder_top, --singlejar_top, --genclass_top, and --ijar_top, and finishes replacing them with java_toolchain.{javac,javabuilder,singlejar,genclass,ijar}. RELNOTES: Replace --java_langtools, --javabuilder_top, --singlejar_top, --genclass_top, and --ijar_top with java_toolchain.{javac,javabuilder,singlejar,genclass,ijar} -- MOS_MIGRATED_REVID=120154954
* Add the --grpc_port startup option and start a Java server if it's passed in.Gravatar Lukacs Berki2016-04-14
| | | | | | | | | | | | | Note that the presence of server/grpc_port does not guarantee that the server actually listens to it and we can't guarantee it, either, because it can always be kill -9'd. I haven't decided yet how the transition between AF_UNIX and gRPC will work. For now, I'm happy that we can start up a Java server. The way to get the kernel-chosen port is truly awful, but it is apparently impossible to do so in a different way: https://github.com/grpc/grpc-java/issues/72 -- MOS_MIGRATED_REVID=119828354
* Rollback of commit 6cb8d820689ad029a9d0dc4ee1100db9b2d96515.Gravatar Damien Martin-Guillerez2016-04-14
| | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks ci.bazel.io While the basics for fixing the build is easy (just a few typos in packages building), fixing the test is a bit more tricky. I see only one solution for fixing the test: use a select statement that would select the good bazel version but that would always pull JavaBuilder as an external dependency when we do test. Better roll this back then check the JavaBuilder 0.1.0 as a binary in third_party before rolling forward (a similar change is still needed to decouple running the test and building the binary for JDK 7) *** Original change description *** Refactor build for JDK 7 Now the JDK 7 tuning happens all in Bazel, removing logic from the CI script. It uses remote repositories to access JDK 7 dependencies. -- MOS_MIGRATED_REVID=119773123
* Fixes bugs so that we can build bazel with bazel on WindowsGravatar Yun Peng2016-04-14
| | | | | | | | | | | | | | | | | | | src/main/java/com/google/devtools/build/lib/exec/SymlinkTreeHelper.java: enable --windows_compatible flag on Windows to make build-runfiles.exe work. scritps/bootstrap/compile.sh: --windows_compatible will also be passed to a dummy build-runfiles.exe defined in complie.sh. Which is actully a batch script, modify it to make it work. ----- With the changes above, we are able to build bazel with bazel. But when you try to run ./compile.sh compile /path/to/bazel again without clean up tmp directory, it will fail with a permission deny error. The reason seems to be that you can't use build-runfile.exe to build the same hard link twice, still trying to solve that. -- Change-Id: I93340b1ba9fa415f6db963b106e264799e33ede3 Reviewed-on: https://bazel-review.googlesource.com/#/c/3334 MOS_MIGRATED_REVID=119751076
* Refactor build for JDK 7Gravatar Damien Martin-Guillerez2016-04-13
| | | | | | | | | | | Now the JDK 7 tuning happens all in Bazel, removing logic from the CI script. It uses remote repositories to access JDK 7 dependencies. -- Change-Id: Iff590c6642ca5b2343aa15096f8fd837d1c80787 Reviewed-on: https://bazel-review.googlesource.com/#/c/3327 MOS_MIGRATED_REVID=119634530
* Add stub gRPC C++ client and Java server.Gravatar Lukacs Berki2016-04-12
| | | | | | | The code doesn't do anything yet and it's unused code for now. This change only serves to add all the necessary dependencies to BUILD files that gRPC needs. -- MOS_MIGRATED_REVID=119628697
* Remove init_workspace, as it unusedGravatar Kristina Chodorow2016-03-24
| | | | | | | Now that --package_path isn't needed, this script can be removed. -- MOS_MIGRATED_REVID=117965624
* Fix build when no CHANGELOG.md exists.Gravatar Damien Martin-Guillerez2016-03-18
| | | | | | | This was actually not breaking the build, just outputing an error -- MOS_MIGRATED_REVID=117481375
* Remove magic terminal width 97Gravatar Klaus Aehlig2016-03-17
| | | | | | | | | | | | | | | | | Bazel expects to be told the width of the terminal; during bootstrap, we do not have a good mechanism of determining it, so we have to resort to a hard-coded value. However, 97 is a not very well motivated value (and actually not a very useful value either) which is hard to guess that this is a default value. Resorting to Bazel's built-in default of 80 is only slightly more useful, but, at least, it is easily recognizable as a default value, as 80 is the width of the famous VT100, the standard punch card, etc. -- Change-Id: I62403ca37ee74a090067a5a4248028e3d624b7c6 Reviewed-on: https://bazel-review.googlesource.com/#/c/3082 MOS_MIGRATED_REVID=117346018
* Make bootstrap process wrapper honor '-' as stdout/stderrGravatar Klaus Aehlig2016-03-17
| | | | | | | | | | | | | | For the process wrapper the value '-' has a special meaning as file name to which stdout/stderr are to be redirected: do not redirect. However, the simple shell script that serves as process wrapper during the bootstrap phase was not aware of this special meaning, resulting in loss of useful process output, which is especially annoying during bootstrap. Fix this. -- Change-Id: Ifcf84e9000d74dafc69b675f192c1fc1cce484e8 Reviewed-on: https://bazel-review.googlesource.com/#/c/3081 MOS_MIGRATED_REVID=117338558
* Add the last Bazel version number to ./compile.shGravatar Damien Martin-Guillerez2016-03-14
| | | | | | | | | | | All Bazel should now contain the latest version with a date modifier to ensure we can track all Bazel builds out there. It is especially important for #1014. -- Change-Id: I8d17d9e1660b104c2b8623d5a8a06d010d044ea7 Reviewed-on: https://bazel-review.googlesource.com/3070 MOS_MIGRATED_REVID=117120584
* Only run `bazel help` if the user isn't rootGravatar Kristina Chodorow2016-03-04
| | | | | | | Fixes #739. -- MOS_MIGRATED_REVID=116257685
* Use bind to redirect C++ crosstool configurationGravatar Damien Martin-Guillerez2016-03-02
| | | | | | | | This is a temporary workaround to enable the use of a cc_configure() rules to auto-configure C++ toolchain. -- MOS_MIGRATED_REVID=116140726
* Add a bazel-srcs target to the top-level package containing all Bazel sourcesGravatar Damien Martin-Guillerez2016-02-29
| | | | | | | | This target include all non tests targets of Bazel to do integration tests of bootstrapping. -- MOS_MIGRATED_REVID=115830741
* Allow outputting the progress of Bazel's build.Gravatar Julio Merino2016-02-26
| | | | | | | | | | | | Rename run_silent to run and add a global VERBOSE variable that tunes whether the run function prints its output or not. This is for better debugging possibilities of Bazel's self-build, though compile.sh remains silent as before and only displays the command's output in case of an error. -- MOS_MIGRATED_REVID=115599355
* Improve handling of exit routines to ensure we respect the exit status.Gravatar Julio Merino2016-02-26
| | | | | | | | | | As part of this, change atexit to receive the name of a function instead of just a chunk of code. This way, we can also control the return value of each individual atexit function and report it to the user, should these routines fail when the program apparently succeeded. -- MOS_MIGRATED_REVID=115575895
* Make the Windows tempdir default to something under the CI directory and ↵Gravatar Lukacs Berki2016-02-24
| | | | | | | | | explicitly create it. Turns out, mktemp doesn't like being passed a non-existent directory. -- MOS_MIGRATED_REVID=115454169
* Aside from Debian dependency on java{7,8}-jdk, accept java{7,8}-sdkGravatar Ivan Vucica2016-02-23
| | | | | | | | | | | It seems like the change introduced in pull request #785 does not function universally. On some releases of Debian and Ubuntu, it looks like packages are declared as providing java{7,8}-sdk. Fixes #961. -- MOS_MIGRATED_REVID=115338913
* Make project generated by setup-intellij.sh error-free.Gravatar Janak Ramakrishnan2016-02-23
| | | | | | | | | | | | | | | | | | | | Fix three issues, one cosmetic, with setup-intellij.sh: running bazel query "deps(${target}, 1)" on generated java files with a visibility specification was returning two targets, one of which was the visibility. Filtering for rules fixes that. Bazel uses the javac langtools in third_party/ in preference to the SDK's, but that wasn't reflected in the order of dependencies in the module. This requires a small hack, since the SDK should appear before some other jars in the dependencies. Finally, remove some apparently dead code related to ijar that was just printing errors when the script was run. -- Change-Id: Iba5ae5a46c720282d99f193cd098ea14cc5eef52 Reviewed-on: https://bazel-review.googlesource.com/2990 MOS_MIGRATED_REVID=115246698
* Update compile_windows scripts to the MSYS64 location hardcoded into Chocolatey.Gravatar Lukacs Berki2016-02-22
| | | | | -- MOS_MIGRATED_REVID=115207057
* Add continuous integration scripts for Windows.Gravatar Lukacs Berki2016-02-22
| | | | | | | | | Jenkins setup is not done yet, but it appears doable. Work towards #927. -- MOS_MIGRATED_REVID=115059680
* Remove vestige of the base_workspace in the installerGravatar Damien Martin-Guillerez2016-02-17
| | | | | | | This should fix the current ci.bazel.io breakage. -- MOS_MIGRATED_REVID=114892993
* On Windows, build ``bazel.exe`` instead of just ``bazel``.Gravatar Dmitry Lomov2016-02-16
| | | | | | | Needed for #276. -- MOS_MIGRATED_REVID=114693711
* installer: set permission of bazelrc to 0644Gravatar Damien Martin-Guillerez2016-02-16
| | | | | | | | | So that bazel can read it. Fixes #894. -- MOS_MIGRATED_REVID=114689351
* Fix template help for Bazel installerGravatar Damien Martin-Guillerez2016-02-15
| | | | | | | Fixes #887. -- MOS_MIGRATED_REVID=114681512
* Add --ignore_unsupported_sandboxing to the bootstrap buildGravatar Damien Martin-Guillerez2016-02-09
| | | | | | | | The recent change in the bootstrap process was causing a warning about sandboxing not being activated. -- MOS_MIGRATED_REVID=114106185
* Get android path from env (fixes #746)Gravatar Steven Dee2016-02-02
| | | | | | | -- Change-Id: Ideb2011d23da470276420afcc8b5a71f1470f391 Reviewed-on: https://bazel-review.googlesource.com/#/c/2771 MOS_MIGRATED_REVID=113639747
* Use labels in load statementsGravatar Damien Martin-Guillerez2016-02-02
| | | | | | | | | | | | This will fix some issue with loading skylark rules from @bazel_tools. Tested with ./compile.sh all and also a project that use pkg_tar from @bazel_tools (which is broken at HEAD). -- Change-Id: Iffbb7134ef5fee497890c4d01b85084973d45ad0 Reviewed-on: https://bazel-review.googlesource.com/2800 MOS_MIGRATED_REVID=113508661
* Handle JAVA_HOME with spacesGravatar Dmitry Lomov2016-01-29
| | | | | -- MOS_MIGRATED_REVID=113356411
* Use label syntax that is immune to MSYS path mangling in bootstrap scripts.Gravatar Dmitry Lomov2016-01-29
| | | | | | | | | | | On Windows, MSYS will mangle all arguments that resemble Unix paths when executing (exec*()) non-msys executables (in an attempt to convert them to Windows paths). This affects ``//src:bazel`` (it becomes ``/src:bazel``) but not ``src:bazel``. This CL converts to the latter in bootstrapping shell scripts to work around this issue. -- MOS_MIGRATED_REVID=113349821
* Rollback of commit 14cf67863d56bab1eef11687a881adf323ba55ad.Gravatar Kristina Chodorow2016-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Issue that caused the rollback (#819) is resolved *** Original change description *** Automated [] rollback of []. *** Reason for rollback *** Prerequisite for rolling back j2objc base workspace change *** Original change description *** Remove base_workspace from bazel setup I also removed a couple places the documentation referred to it incorrectly. There are still a couple of blog posts that mention it, but that seemed okay. RELNOTES: A bazelrc with --package_path set is no longer required for Bazel to find its tools. This also means that building //...... -- MOS_MIGRATED_REVID=113259357
* Rollback of commit e87849b8d391af8f5d98e3a91e680e88a1264b64.Gravatar Kristina Chodorow2016-01-28
| | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Prerequisite for rolling back j2objc base workspace change *** Original change description *** Remove base_workspace from bazel setup I also removed a couple places the documentation referred to it incorrectly. There are still a couple of blog posts that mention it, but that seemed okay. RELNOTES: A bazelrc with --package_path set is no longer required for Bazel to find its tools. This also means that building //... should work to build everything in the workspace without including Bazel's own targets. -- MOS_MIGRATED_REVID=113164089