aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
* 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
* Windows, bootstrapping: do not build JNI library.Gravatar Laszlo Csomor2016-09-28
| | | | | | | | | | Since commit 94d905836c167a21d2321d26c646fde07f5fc522 we no longer need JNI for WindowsFileSystem.isJunction. This is a partial rollback of commit 4a249b6962d32ed4cfd4165dfdae4a555b00bb69. Affects https://github.com/bazelbuild/bazel/issues/1680 -- MOS_MIGRATED_REVID=134506403
* Rollback of commit 96d46280bc5a4803ba2242a4ad16939f85a3b212.Gravatar Damien Martin-Guillerez2016-09-28
| | | | | | | | | | | | | | | | | | | | | | *** 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=134450299
* Add the version information to the bazel.exe fileGravatar Damien Martin-Guillerez2016-09-27
| | | | | | | | | | | | | Current change do not include version number. Include the version number in the artifact. Closes #1841. -- Change-Id: I2516527829ec28c7c9abea2424f2e7d9585af9b0 Reviewed-on: https://github.com/bazelbuild/bazel/pull/1841 MOS_MIGRATED_REVID=134422109
* Bootstrapping: don't use convenience symlinksGravatar Laszlo Csomor2016-09-27
| | | | | | | | | | | | | | | | | | | | | | When `compile.sh` builds bazel using bazel, it copies the resulting binary to `output/bazel`. However sometimes the convenience symlink `bazel-bin` is not created, probably because an old one is still around and cannot be deleted. That is clearly a bug, but to work around it, the bootstrap builder shouldn't attempt to rely on the creation of these symlinks in the first place. This change updates compile.sh to use `bazel info` to locate the `bazel-bin` directory's real path, and attempt to copy the bazel binary from there. This works around https://github.com/bazelbuild/bazel/issues/1827 -- MOS_MIGRATED_REVID=134398451
* Debian package: remove declared dependencies on zip, unzip and pkg-configGravatar Damien Martin-Guillerez2016-09-27
| | | | | | | | | Those dependencies are not needed at runtime. Fixes #1834. -- MOS_MIGRATED_REVID=134373693
* Bazel bootstrapping: build an optimized binaryGravatar Laszlo Csomor2016-09-26
| | | | | | | | | Pass "-c opt" when building bazel. Fixes https://github.com/bazelbuild/bazel/issues/1830 -- MOS_MIGRATED_REVID=134307054
* Create a package for Windows via chocolateyGravatar Peter Mounce2016-09-26
| | | | | | -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1742 MOS_MIGRATED_REVID=134283632
* Bazel bootstrapping: consume custom startup flagsGravatar Laszlo Csomor2016-09-26
| | | | | | | | | | | | | | | | | | | | | The bootstrap build is special in that it does not use the Bazel client hence we cannot pass a --bazelrc flag as there'd be nothing to parse it. While Bazel is being bootstrapped it's nice to have colors on a smart terminal, but when the bootstrapping is done by Jenkins as part of a CI test, we need the output to be readable, i.e. be free of control characters, so we should pass --colors=no for example. By exporting BAZEL_BOOTSTRAP_STARTUP_OPTIONS the user can control what startup flags will the bootstrap build use, so we can pass these dumbing-down flags during CI builds. -- MOS_MIGRATED_REVID=134273969
* Reintroduce .bazelrc and set --action_env defaultsGravatar Klaus Aehlig2016-09-21
| | | | | | | | | | | | | 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. -- Change-Id: Ib763677a951e1264ae92954df9b831374594d8b7 Reviewed-on: https://bazel-review.googlesource.com/#/c/6113 MOS_MIGRATED_REVID=133704608
* Delete intellij script generator now that https://ij.bazel.io is live.Gravatar Damien Martin-Guillerez2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132857927
* Properly avoid aliases when invoking grep. Using $(which grep) instead of ↵Gravatar Googler2016-09-07
| | | | | | | | | plain grep does not avoid alias interference, it merely trades problems when "grep" is an alias for problems when "which" is an alias (both are commonly defined as aliases). A more reliable way to turn off alias expansion is to simply quote the command name, which is what I'm doing here. -- MOS_MIGRATED_REVID=132338563
* Windows bootstrapping: Fix compile.sh with setting $TMPDIR.Gravatar Laszlo Csomor2016-09-06
| | | | | | | | | | | | | It now always uses mixed path style (drive letter + forward slashes) and expands abbreviated paths (when c:\\looongpath\\foo is abbreviated to c:\\looong~1\foo). The result will always look like c:/looongpath/foo/. Fixes https://github.com/bazelbuild/bazel/issues/1714 -- MOS_MIGRATED_REVID=132218638
* Rollback of commit a51ca6fa732af58a7d1667d408a2511ffa3199da.Gravatar Laszlo Csomor2016-09-06
| | | | | | | | | | | | | | | *** Reason for rollback *** Still broken. :( *** Original change description *** Windows bootstrapping: Fix compile.sh when $TMP is unset. Fixes https://github.com/bazelbuild/bazel/issues/1714 -- MOS_MIGRATED_REVID=132217266
* Windows bootstrapping: Fix compile.sh when $TMP is unset.Gravatar Laszlo Csomor2016-09-06
| | | | | | | Fixes https://github.com/bazelbuild/bazel/issues/1714 -- MOS_MIGRATED_REVID=132060993
* Windows, JNI: use native isJunction method.Gravatar Laszlo Csomor2016-09-06
| | | | | | | Fixes https://github.com/bazelbuild/bazel/issues/1680 -- MOS_MIGRATED_REVID=132051176
* Fix tests by explicitly passing TEST_TMPDIR to mk*temp.Gravatar Julio Merino2016-09-02
| | | | | | | | | | | We need to tell mktemp to explicitly create temporary files and directories under TEST_TMPDIR. The default of picking up the TMPDIR value (which may be unset) or /tmp may not work and was causing two tests to fail. I suspect that paths outside of TEST_TMPDIR may not be writable due to our sandboxing features. -- MOS_MIGRATED_REVID=131957733
* xcode_configure repository rule for determining locally installed versions ↵Gravatar Chris Parsons2016-09-01
| | | | | | | | | | | of xcode to select between, relaxing the requirement that users specify --xcode_version and --ios_sdk_version even if they have only one version installed. RELNOTES: On mac devices, detect locally installed versions of xcode to: 1. Use a sensible default if xcode is required but --xcode_version is unspecified. 2. Use sensible default iOS SDK version for the targeted version of xcode if ios_sdk_version is unspecified. -- MOS_MIGRATED_REVID=131841587
* Rollback of commit 1cd224a17bfe30f7d3c0e7f5eaada3e0331ff31a.Gravatar Cal Peyser2016-08-31
| | | | | | | | | | | | | *** Reason for rollback *** Re-enabling tests now that they are passing *** Original change description *** Disable broken tests. -- MOS_MIGRATED_REVID=131825670
* Update the JAVAC_VERSION regex to handle the case where javac adds extra ↵Gravatar John Cater2016-08-23
| | | | | | | | | text around the version string. Fixes #1678. -- Change-Id: I765699c43119e28d5f0ef8245b91e263d6af6dc0 Reviewed-on: https://bazel-review.googlesource.com/c/5570 MOS_MIGRATED_REVID=131080854
* Use path given by which to invoke grep to bypass aliases set by the userGravatar Damien Martin-Guillerez2016-08-23
| | | | | | | | | If the user had an alias grep='grep --color=always' it would break the bash completion, outputting the formatting character. Bypass the user alias to avoid the effect. -- MOS_MIGRATED_REVID=131040601
* Disable broken tests.Gravatar Cal Peyser2016-08-22
| | | | | -- MOS_MIGRATED_REVID=130761732
* Fix Bazel CI by appending the newline to WORKSPACE, which got lost in commit ↵Gravatar Philipp Wollermann2016-08-19
| | | | | | | | | | | bfaff29b1bafd7892a2197b7cf826e1be0ff3927. Without the newline, our bazel/scripts/ci/build.sh will append an android_sdk_repository() rule into the file in such a way, that it produces a syntax error. Also fix the build.sh script to be more resilient and not actually require the newline. -- MOS_MIGRATED_REVID=130737331
* Let Bazel use sandboxing during bootstrap, if it's available.Gravatar Philipp Wollermann2016-08-17
| | | | | -- MOS_MIGRATED_REVID=130406085
* Rollback of commit 7a1d4132012c5ae6c1617045138e1a662e3964bd.Gravatar Klaus Aehlig2016-08-05
| | | | | | | | | | | | | | | | | *** Reason for rollback *** The underlying issue (wrong operator '==' instead of '=' for test (a.k.a '[')) was fixed by commit 31b059fc07831f86be951609128b7cd51613df98 which removed the offending code completely. *** Original change description *** Revert build-runfiles to use /bin/bash If /bin/sh is dash (default on Ubuntu), this output a lot of garbage error, which make thing that the dummy build-runfiles is incorrect. See http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=ubuntu_15.10-x86_64/731/console -- MOS_MIGRATED_REVID=129432905
* Revert build-runfiles to use /bin/bashGravatar Damien Martin-Guillerez2016-08-05
| | | | | | | | | If /bin/sh is dash (default on Ubuntu), this output a lot of garbage error, which make thing that the dummy build-runfiles is incorrect. See http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=ubuntu_15.10-x86_64/731/console -- MOS_MIGRATED_REVID=129430198
* Make compile.sh print the console output for any failing commands during ↵Gravatar Lukacs Berki2016-08-04
| | | | | | | | | bootstrap. Previously, we deleted the temp dir and after that, we tried to print errfile in it, and were surprised that it didn't exist. -- MOS_MIGRATED_REVID=129320375