aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
* Improve ./compile.sh error messageGravatar Klaus Aehlig2016-11-28
| | | | | | | | | | | | ...when neither run on a distribution artefact nor PROTOC is set. In this case, it might be that the user was trying to build a development version of bazel, which should be done with 'bazel build //src:bazel'. -- Change-Id: Ib76601f625b36515a94af7508dfd73a3a352710f Reviewed-on: https://cr.bazel.build/7536 MOS_MIGRATED_REVID=140350570
* Add Oracle JDK 7/8 as optional dependencies.Gravatar Misha Brukman2016-11-28
| | | | | | | | | | | | | | With this change, `oracle-java7-installer` and `oracle-java8-installer` become alternatives to satisfy the JDK dependency and thus can be implicitly installed when someone just asks to install Bazel by itself. Resolves issue #1821. Closes #2137. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2137 MOS_MIGRATED_REVID=140200795
* Prevent merge debris being part of packageGravatar Peter Mounce2016-11-24
| | | | | | | | Closes #2095. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2095 MOS_MIGRATED_REVID=140134289
* Support choco package fixesGravatar Peter Mounce2016-11-24
| | | | | | | | | | | | I've used this to create https://chocolatey.org/packages/bazel/0.4.1-rc2-20161124-122858 which is in the queue for automated validation. That package is built with #2134. Closes #2135. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2135 MOS_MIGRATED_REVID=140131036
* Bazel release script: run `gsutil cp` in parallelGravatar Laszlo Csomor2016-11-24
| | | | | | | | | | | | | Run the command with the `-m` option so gsutil will copy files in parallel. Suggested by gsutil itself http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel-Release/83/console (look for "NOTE: You are performing a sequence of gsutil operations") -- MOS_MIGRATED_REVID=140119304
* Reinstate python2 only constraintGravatar Peter Mounce2016-11-24
| | | | | | | | | | See gitter chat around https://gitter.im/chocolatey/choco?at=58361d42b07a1fd34833fe36. The rc failed automatic validation because of it, we think. Closes #2134. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2134 MOS_MIGRATED_REVID=140114046
* Change the bootstrap script to swapGravatar Nathan Harmata2016-11-23
| | | | | | | | | | the order of the error_prone_core jar and the guava jar. The default alphabetical-directory ordering is bad for the same reason that care is needed in the order of those jars in the rules in third_party/BUILD (see the comments there for more info). -- MOS_MIGRATED_REVID=140051569
* Make compile.sh use pregenerated protoc output, if presentGravatar Klaus Aehlig2016-11-23
| | | | | | | | | | | | Change ./compile.sh to look for pregenerated protoc output and use it, if present. If not, insist on PROTOC and GRPC_JAVA_PLUGIN to be specified via the environment. In this way compile.sh does not depend on committed binaries any more. -- Change-Id: I0d19a16535b606d2a6ab26ca349a7f9db8e224b7 Reviewed-on: https://bazel-review.googlesource.com/#/c/6731 MOS_MIGRATED_REVID=140037537
* Make the python dependency more lenientGravatar Peter Mounce2016-11-23
| | | | | | | | | | Based on [this comment](https://github.com/bazelbuild/bazel/issues/2027#issuecomment-262229811), allow python3 to be used. cc @meteorcloudy. Closes #2122. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2122 MOS_MIGRATED_REVID=140031775
* Fix pattern matching for the dist archiveGravatar Klaus Aehlig2016-11-23
| | | | | | | -- Change-Id: I4d4b7d84b105061d1555da7f7144f310dde38cc8 Reviewed-on: https://cr.bazel.build/7512 MOS_MIGRATED_REVID=140025107
* Release script: add release notes to the git notesGravatar Damien Martin-Guillerez2016-11-22
| | | | | | | | | | | This is a first change to get rid of the release commit on release branch. Doing so will 1/ allows for git workflow (git cherry-pick), 2/ allows to use merge feature from git notes. -- Change-Id: Id6a93f0dc70b9efe8ff705f1dd2a16489989f281 Reviewed-on: https://cr.bazel.build/7337 MOS_MIGRATED_REVID=139904935
* Release script: add a --force_rc command to override the candidate numberGravatar Damien Martin-Guillerez2016-11-21
| | | | | | | -- Change-Id: I9eb4897dd65e1f63fb4a1ff59ba901f81cd2e6c0 Reviewed-on: https://cr.bazel.build/7336 MOS_MIGRATED_REVID=139580860
* compile_windows.sh: Fix zipping Windows Bazel binaryGravatar Yun Peng2016-11-18
| | | | | -- MOS_MIGRATED_REVID=139573133
* compile_windows.sh: Remove .exe extension when copying ./bazel-bin/src/bazelGravatar Yun Peng2016-11-18
| | | | | -- MOS_MIGRATED_REVID=139572117
* Remove --workspace_status_command from windows bootstrapGravatar Yun Peng2016-11-18
| | | | | | | On Windows, passing a shell script to this command will lead to a crash. -- MOS_MIGRATED_REVID=139570957
* Fix JAVA_HOME format on WindowsGravatar Yun Peng2016-11-18
| | | | | | | fixed https://github.com/bazelbuild/bazel/issues/2102 -- MOS_MIGRATED_REVID=139562049
* compile_windows.sh: use ${BOOTSTRAP_BAZEL}Gravatar Klaus Aehlig2016-11-17
| | | | | | | | | | | ...as compile.sh from a plain checkout won't work in the future (an unpacked distribution archive would be necessary, but using the bootstrap bazel is easier for CI). -- Change-Id: I186a9422bb1a092ced7396f396a8a158aa67e0f4 Reviewed-on: https://bazel-review.googlesource.com/#/c/7352 MOS_MIGRATED_REVID=139458547
* Use SHA256 as digest algorithm when signing bazel debian packagesGravatar Yun Peng2016-11-15
| | | | | | | Fixed https://github.com/bazelbuild/bazel/issues/1611 -- MOS_MIGRATED_REVID=139190088
* Fix building Bazel under the new Linux sandboxGravatar Brian Silverman2016-11-14
| | | | | | | | | | find(1) defaults to not following symlinks, which doesn't work when all the folders get replaced with symlinks. -- Change-Id: I016db7bfefb308eb7026d2a52ba768613895dfee Reviewed-on: https://bazel-review.googlesource.com/c/6810/ MOS_MIGRATED_REVID=139063351
* Only install bazel-distfile.zip on linuxGravatar Klaus Aehlig2016-11-11
| | | | | | | | | | | ...since we only build it on this architecture. And as it is an architecture-independent artifact anyway, it is enough to build it once. -- Change-Id: I31a108154d20a190260ca5842947b6319d434735 Reviewed-on: https://bazel-review.googlesource.com/#/c/7333 MOS_MIGRATED_REVID=138859209
* Add the distribution artifact to the list of release filesGravatar Klaus Aehlig2016-11-11
| | | | | | | -- Change-Id: I09053cbd476e5f8bb5bdb9f272ad414d165f6d9f Reviewed-on: https://bazel-review.googlesource.com/#/c/7131 MOS_MIGRATED_REVID=138855685
* When bootstrapping Bazel, use a proto-compiler from ↵Gravatar Carmi Grushko2016-11-11
| | | | | | | | | | | | | //third_party/protobuf/3.0.0/. The issue is that the proto-compiler in third_party/protobuf/ (not 3.0.0/) is actually 3.0.0-beta4, which lacks support for proto maps. This CL will be followed by the removal of the binaries in third_party/protobuf/. This is a temporary workaround to allow me to submit code that uses proto maps. -- MOS_MIGRATED_REVID=138815162
* Remove all node specific set-up from the Windows CI compile scriptGravatar Damien Martin-Guillerez2016-11-11
| | | | | | | | | Those set-up have been moved to the Jenkins job or simply removed. -- Change-Id: Ib687ad4ab682d81f94ea2eadacf3d145c9fcfe14 Reviewed-on: https://bazel-review.googlesource.com/7332 MOS_MIGRATED_REVID=138789683
* On ci, bootstrap from a bootstrap bazelGravatar Klaus Aehlig2016-11-10
| | | | | | | | | | | | | | With the implementation of the distribution-artifact design, calling ./compile.sh on a git checkout won't work any more unless you already have the correct version of the protoc installed. To prepare for that, and to also keep the maintenance burden for the ci slaves low, we build bazel on the ci machines with the latest release of bazel as bootstrap bazel. -- Change-Id: I18953489cc7282586d6d0a3911ec94e11215a540 Reviewed-on: https://bazel-review.googlesource.com/#/c/6771 MOS_MIGRATED_REVID=138761693
* Remove bazel windows tests from Bazel bootstrap jobGravatar Yun Peng2016-11-08
| | | | | -- MOS_MIGRATED_REVID=138389908
* Fix chocolatey package hard-coding c: driveGravatar Peter Mounce2016-11-07
| | | | | | | | | | This fixes #2032. Closes #2046. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2046 MOS_MIGRATED_REVID=138377177
* Support RCs with chocolatey packageGravatar Peter Mounce2016-11-03
| | | | | | | | | | | | This - makes the `tools/*.ps1` generation more sane - supports generating a package for RCs Closes #2005. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2005 MOS_MIGRATED_REVID=138052483
* Fix //script/release:release_testGravatar Kristina Chodorow2016-10-28
| | | | | | | Fixes #2003. -- MOS_MIGRATED_REVID=137545010
* Also mention the release key id in the release notesGravatar Klaus Aehlig2016-10-28
| | | | | | | | | | ...as quite some users are more used to downloading keys from key servers. -- Change-Id: I6bb60a618d50c7c70561eb5851932153c470e3d2 Reviewed-on: https://bazel-review.googlesource.com/#/c/6934 MOS_MIGRATED_REVID=137526194
* Print a summary of what the create command didGravatar Kristina Chodorow2016-10-28
| | | | | | | | | | | | | Added an echo to print "Created 1.2.3RC4 on branch release-1.2.3." when `release.sh create` runs, to save people from the mistake I made (pushing the first RC as "RC3"). I also added a line to bounce the shell back to the original branch the user was on, since it's a bit weird to have the script exit and be on a different branch. -- MOS_MIGRATED_REVID=137512849
* Add zip file of Windows binary into release processGravatar Yun Peng2016-10-28
| | | | | -- MOS_MIGRATED_REVID=137503749
* Change our URL to bazel.buildGravatar Damien Martin-Guillerez2016-10-28
| | | | | -- MOS_MIGRATED_REVID=137500893
* Skip gpg signing if .sig file is already thereGravatar Yun Peng2016-10-27
| | | | | | | Fix https://github.com/bazelbuild/bazel/issues/1990 -- MOS_MIGRATED_REVID=137262738
* Remove .sig file before gpg signingGravatar Yun Peng2016-10-26
| | | | | | | | | gpg need tty because it's requesting confirmation for overriding that file Fix https://github.com/bazelbuild/bazel/issues/1990 -- MOS_MIGRATED_REVID=137251576
* Add --no-tty for gpg signingGravatar Yun Peng2016-10-24
| | | | | | | RELNOTES:None -- MOS_MIGRATED_REVID=137043040
* Stamp Windows release.Gravatar Dmitry Lomov2016-10-24
| | | | | | | -- Change-Id: I6f782f5dbeba03962381d32183e2afd2f0175709 Reviewed-on: https://bazel-review.googlesource.com/#/c/6832/ MOS_MIGRATED_REVID=137029264
* Fix chocolatey package build scripts - minor fixes.Gravatar Peter Mounce2016-10-24
| | | | | | | | Closes #1949. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1949 MOS_MIGRATED_REVID=137022912
* Fix and re-enable bazel_windows_example_testGravatar Yun Peng2016-10-21
| | | | | | | -- Change-Id: I09d8ef5daceb48066ec40420ad5cf21514059f4a Reviewed-on: https://bazel-review.googlesource.com/#/c/6770 MOS_MIGRATED_REVID=136825145
* Disable a test that is currently broken on Windows.Gravatar Philipp Wollermann2016-10-19
| | | | | | | Will be re-added once it is fixed. Tracking bug is #1965. -- MOS_MIGRATED_REVID=136595269
* Fix caching for zsh completionsGravatar Nate Bosch2016-10-19
| | | | | | | | | | | | | | | | | | | | | Before - failing to find completions in the relevant variable would always force getting them fresh, regardless of whether they are present in the cache because the `||` would always be true. - in _bazel_get_options use a short circuit return when the variable is not empty - in _bazel_command, _bazel_help_topic, and _bazel_info_key nest the cache conditions inside the if block checking for an empty varible cleanup: - Use the same 2 space indent for continued conditions in _bazel_get_options as was already used in _bazel_command and the rest Closes #1951. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1951 MOS_MIGRATED_REVID=136458728
* Fix permissions before overwriting filesGravatar Klaus Aehlig2016-10-18
| | | | | | | | | | | | | | In our bazel-srcs tar ball, files are packed with permissions 550. Copying into a temporary directory may preserve permissions. So, when overwriting one of those files in the temporary directory, grant the user write permissions before writing to that file. Otherwise, bootstrapping from //:bazel-srcs via ./compile.sh as normal user will fail on some systems. -- Change-Id: I70b4645c9bc3c25b9fd356bacdb959205c64b931 Reviewed-on: https://bazel-review.googlesource.com/#/c/6695 MOS_MIGRATED_REVID=136360945
* More changes for chocolatey package.Gravatar Peter Mounce2016-10-14
| | | | | | | | | | | 1. Update required version of msys to match versions that are published on chocolatey 2. Warn user about required possibly incompatible entries in PATH. Closes #1933. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1933 MOS_MIGRATED_REVID=136129573
* Site publishing: add checksum computation to `gsutil rsync`Gravatar Damien Martin-Guillerez2016-10-12
| | | | | | | | | | `gsutil rsync` does not compute checksum when one of its argument is on a local filesystem because this can be slow, for our use case we want to do it or two files with the same size will be seen as identical. -- MOS_MIGRATED_REVID=135903003
* Add the public key directly on our website.Gravatar Damien Martin-Guillerez2016-10-12
| | | | | | | | | | | And refer it from the various release pages. Also: - Adds the sig file to the release candidate page - Fix a typo -- MOS_MIGRATED_REVID=135793241
* Sign all Bazel binaries using gpg during release processGravatar Yun Peng2016-10-11
| | | | | | | | | Fix https://github.com/bazelbuild/bazel/issues/1668 -- Change-Id: Ibe517744cd55ad5e32420302a081cc72da878bbe Reviewed-on: https://bazel-review.googlesource.com/#/c/6550 MOS_MIGRATED_REVID=135787988
* Adding support for Linux s390xGravatar namrata-ibm2016-10-11
| | | | | | | | | | | We have added support for Linux s390x platform in Bazel. Closes #1891. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1891 MOS_MIGRATED_REVID=135777047
* Changes necessary for releasing 0.3.2 chocolatey package.Gravatar Peter Mounce2016-10-11
| | | | | | | | | | Note - the chocolatey package to satisfy this has not yet been released, but it _will_ be according to [this trail](https://github.com/userzimmermann/choco-packages/issues/7#issuecomment-252605193) Closes #1905. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1905 MOS_MIGRATED_REVID=135774603
* Rollback of commit c5545fd0896f3c602a9be0986debed6f0c9c662d.Gravatar Klaus Aehlig2016-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Roll-forward with appropriate fixes: --action_env is a "build" option, not a "common" option. Moreover, also inherit the corresponding variables for tests from the effective action environment. Also fix the corresponding error in the design document. *** Original change description *** Automated [] rollback of commit 96d46280bc5a4803ba2242a4ad16939f85a3b212. *** Reason for rollback *** Broke installation on latest release. Fixes #1846 *** Original change description *** Reintroduce .bazelrc and set --action_env defaults Shipping a .bazelrc was removed in 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0. However, as per our "Specifying environment variables for actions" design document, we want to ship a global rc file specifying the common environment variables to be inherited. So revert that change and add the desired entries to the global bazelrc file we're shipping. *** -- MOS_MIGRATED_REVID=134769063
* Windows, native: add windows_msvc config_settingGravatar Laszlo Csomor2016-09-28
| | | | | | | | | | | | | | | Update `select` statements in BUILD files with the new config_setting. This is a first step on a long path that leads to us being able to compile bazel on Windows with --cpu=x64_windows_msvc. Needless to say, we're not there yet. Tested: on Linux, Darwin, Windows/MSYS -- MOS_MIGRATED_REVID=134534613
* Add interfaces for the build event protocolGravatar Klaus Aehlig2016-09-28
| | | | | | | | | | | Bazel in the will provide a machine-readable stream of important build events. These interfaces set up the framework and expectations about the produced events and the entities distributing those events. -- Change-Id: If2c3b2e11c31b0136b57eadeef2d2f8f8fe5e2e7 Reviewed-on: https://bazel-review.googlesource.com/#/c/6272 MOS_MIGRATED_REVID=134522369