aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
* Fix scripts/serve-docs.shGravatar hlopko2017-05-31
| | | | | RELNOTES: None. PiperOrigin-RevId: 157463020
* Do not use sed -E in bootstrap/compile.shGravatar hlopko2017-05-30
| | | | | | | Strangely enough, some clients have sed that doesn't support -E RELNOTES: None. PiperOrigin-RevId: 157397892
* Make msysless flavour be the default inside chocolateyGravatar Peter Mounce2017-05-29
| | | | | | | | | | | | This attempts to fix #3006. This change will presumably have to be reversed once msysless binary name changes to become the default. It would be simpler to name the default binary for being default, to avoid special casing (see https://github.com/bazelbuild/bazel/issues/3006#issuecomment-301440068). Closes #3066. PiperOrigin-RevId: 157390473
* Remove unused method from build.shGravatar Damien Martin-Guillerez2017-05-29
| | | | | Change-Id: I21c738873b2bc6b4d2e8b607e0a206589d905f86 PiperOrigin-RevId: 157271290
* Fix URL in compile.sh error messageGravatar Klaus Aehlig2017-05-22
| | | | | | | | | Our web page has been reorganized. The instructions to compile from source are now on a page of its own. Update the link in the error message accordingly. Change-Id: Ica1187a893b911eca638c5535a3f9686a661fe6f PiperOrigin-RevId: 156731324
* Fix typo. Also do not override host_cpu for msvc.Gravatar dslomov2017-05-15
| | | | | RELNOTES: None. PiperOrigin-RevId: 156107235
* Make make sure that msys build actually builds msys versionGravatar dslomov2017-05-15
| | | | | RELNOTES: None. PiperOrigin-RevId: 156102527
* Fix #2982: Bazel installer should not check for installed JDK if using a ↵Gravatar philwo2017-05-15
| | | | | | bundled JDK. PiperOrigin-RevId: 156092071
* Disable msys path conversion on Windows.Gravatar dslomov2017-05-15
| | | | | RELNOTES: None PiperOrigin-RevId: 156068741
* Remove references to ANDROID_SDK_API_LEVEL from CIGravatar Adam Michael2017-05-11
| | | | | | | | | ANDROID_SDK_API_LEVEL was previously set by a script that parsed that platforms/ directory of the SDK. Now this functionality is handled by android_sdk_repository which autodetects the available API levels. Change-Id: Ifbbc5499444f465929b9d70bf488ff5ba3c4cded PiperOrigin-RevId: 155747062
* Update javac version to 9-dev-r4023-2Gravatar Liam Miller-Cushon2017-05-10
| | | | | Change-Id: I23e38767e18a90b2262a38bf8f4b347e06d1de8d PiperOrigin-RevId: 155630560
* Fix link in bazel/bootstrap/compile.shGravatar hlopko2017-05-09
| | | | | RELNOTES: None PiperOrigin-RevId: 155489021
* Do not mark the JDK7 installer -without-jdk-installerGravatar dmarting2017-05-09
| | | | | | | | | | Instead just mark it as a default installer when there is no installer with a bundled JDK. Fixes #2969 To be cherry-picked for #2692. PiperOrigin-RevId: 155483548
* Pass all the environment variable to Bazel during bootstrappingGravatar Damien Martin-Guillerez2017-05-09
| | | | | | | | | | | We might be using more environment variables that the actual list. To be cherry-picked for #2692. Fixes #2953. Change-Id: I9b926d48e14b2c65822770ab46f6507a5303c3d3 PiperOrigin-RevId: 155387369
* Fix #2958: Installer should not overwrite bazelrcGravatar Philipp Wollermann2017-05-08
| | | | | | | Closes #2959. Ping #2692 for cherry-picking into Bazel 0.5.0. PiperOrigin-RevId: 155357560
* Bootstrap: move the fail function to the topGravatar dmarting2017-05-05
| | | | | | | | | | We use fail pretty early in the script and not having the fail function leads to non useful message about the fail function not existing. Fixes #2949. PiperOrigin-RevId: 155186880
* Do not put PiperOrigin-RevId tag into relnotesGravatar Marcel Hlopko2017-05-04
| | | | | Change-Id: If79da71d2939517724d92cbe470173b5d68e3019 PiperOrigin-RevId: 155075510
* Release to GCS: put the final release in its own directoryGravatar dmarting2017-05-04
| | | | | | To be cherry-picked for #2692. PiperOrigin-RevId: 155063394
* Bundled JDK changes for the release process. This is a fixed versionGravatar philwo2017-04-28
| | | | | | | | | | | | | | | that should not break CI this time... - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Tested by running "bazel build //scripts/..." in a clean checkout and one with this patch in, then diffing the entire bazel-out folder and manually inspecting the resulting files (zips, tar.gz, deb, rpm) to make sure that they contain the right files. Looks all good now, so let's try again. PiperOrigin-RevId: 154544164
* Windows, bootstrapping: fix bugs to support CygwinGravatar Laszlo Csomor2017-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | | We can't yet fully bootstrap Bazel on Cygwin, but can build Bazel from scratch. Building Bazel with Bazel fails because gcc isn't found where it's believed to be -- /usr/bin is a mount in Cygwin (to /bin), not a symlink or directory. In this change I: - added support for the Cygwin shell as a bootstrap platform (recognize `uname`) - updateed the bootstrap scripts to use "windows" as the PLATFORM string, not "mingw" - fixed the git lookup code - removed some hardwired msys-style path - added a cygpath call to convert $PWD to a mixed-style (otherwise the bootstrap script passes --client_cwd=/cygdrive/c/... to the server and WindowsFileSystem.java wants to make that relative to c:/cygwin64) See https://github.com/bazelbuild/bazel/issues/2885 Change-Id: Icc71261ea4f0c6d4a9c0846551a7977ca6020331 PiperOrigin-RevId: 154273014
* Automated g4 rollback of commit 2c4dd1f3176371473667c551cd5a5ae5992f8154.Gravatar philwo2017-04-24
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks CI because //scripts/packages/debian:bazel-bin still references //scripts/packages:bazel-real. *** Original change description *** Bundled JDK changes for the release process. - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Change-Id: If87c986507ae8e7dbbf0e8f163dd0073a206b265 PiperOrigin-RevId: 154054435
* Make serve-docs script more robustGravatar kchodorow2017-04-24
| | | | | | | | | | * Make quit & reload actually kill the server, to prevent bind errors. * Added an arg to bind to $HOSTNAME, instead of just localhost, for ease of code review. * Makes option parsing a little more robust. * Moves "build the jekyll tree" out of the "serve forever" loop. PiperOrigin-RevId: 153840306
* Bundled JDK changes for the release process.Gravatar Philipp Wollermann2017-04-24
| | | | | | | | - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Change-Id: If87c986507ae8e7dbbf0e8f163dd0073a206b265 PiperOrigin-RevId: 153718827
* Exclude javac-9-dev-4023-1 from bootstrap compilationsGravatar Liam Miller-Cushon2017-04-20
| | | | | | | | The jar will be added in https://bazel-review.googlesource.com/c/10050/ Change-Id: I6e8228f8dbc627cd22bab45ae8eda5b4f332cbda PiperOrigin-RevId: 153634892
* Remove empty_files for bazel binary installer.Gravatar Harsh Vardhan2017-04-13
| | | | | | | | | Bazel binary installer contains empty files because of the line that wasn't removed while packaging bazel_tools inside bazel. Fixes: https://github.com/bazelbuild/bazel/issues/2662 Change-Id: I53a1f74566c48c3458ced2d46362873a68b6bf49 PiperOrigin-RevId: 153048191
* Squash remaining unmerged changes and resubmit PR from #2758Gravatar Peter Mounce2017-04-12
| | | | | | Closes #2764. PiperOrigin-RevId: 152907840
* adding more env vars to invalidation listGravatar Nicolas Lopez2017-04-04
| | | | | | | | | It seems several env vars that are used by cc_configure are not in the invalidation list and not included in the bootstrap compile. Adding them. Change-Id: I67f73ae09abbe9033bcbbcb4026dab04d225b699 PiperOrigin-RevId: 152139948
* Fix choco integrity checkGravatar dslomov2017-03-31
| | | | | | | | | | This causes a hard-fail. I'm attempting to publish a fixed package now, but chocolatey.org is failing with a `502 Bad Gateway`. I'm talking to the chocolatey team in their gitter now. I'll update here once I've been able to push. Closes #2758. PiperOrigin-RevId: 151693032
* Release: also push the final release to GCSGravatar dmarting2017-03-29
| | | | PiperOrigin-RevId: 151564075
* Replacing hardcoded use of 'local' for env variables in cc autoconfigGravatar Nicolas Lopez2017-03-28
| | | | | | | | -- Change-Id: Ic1632229e67bf82b69983f9614258c5fd54c12d8 Reviewed-on: https://cr.bazel.build/9390 PiperOrigin-RevId: 151422502 MOS_MIGRATED_REVID=151422502
* Simplify the steps needed to run android_integration_test.Gravatar Adam Michael2017-03-24
| | | | | | | | | | | | As of Bazel 0.4.5, the android_sdk_for_test and android_ndk_for_test are bound in android.WORKSPACE, so we do not need to include them in the main Bazel WORKSPACE file. I've update the comments to reflect that all that is needed to run the tests is android_sdk_repository and android_ndk_repository and the environment variables that they read. Also, delete scripts/workspace_user.sh. All of its functionality (reading environment variables, detecting api levels, build tools versions) is now part of android_{s,n}dk_repository. Fixes https://github.com/bazelbuild/bazel/issues/2284. -- PiperOrigin-RevId: 151032551 MOS_MIGRATED_REVID=151032551
* Build MSVC Bazel on windows-msvc-x86_64 platformGravatar Yun Peng2017-03-23
| | | | | | | | -- Change-Id: I044b8c244d63232ccec7bf48556248ee2dd1c43d Reviewed-on: https://cr.bazel.build/9515 PiperOrigin-RevId: 151019006 MOS_MIGRATED_REVID=151019006
* Honor SOURCE_DATE_EPOCH in bootstrapping Gravatar Klaus Aehlig2017-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, a stamped bazel binary contains the actual timestamp at build time. This means, that building bazel we either include no version information at all, or the binary contains a not reproducible time stamp. Both are not acceptable from the point of view of a downstream maintainer of a bazel package, where the requirement is that the package be reproducible, but the binary still provide sensible version information. Fortunately, there is a suggested standard to solve this problem taking the "current time" from the SOURCE_DATE_EPOCH environment variable, if set, rather than the actual time. See https://reproducible-builds.org/specs/source-date-epoch/. Honor this proposed standard, so that bazel can reasonably be packaged downstream. See issue #2240. Note that we only use the environment variable in our bootstrap script; for bazel itself we communicate that information via an appropriate option. -- Change-Id: I55409a117285b9a3446421179c20f4e8c59088f8 Reviewed-on: https://cr.bazel.build/9467 PiperOrigin-RevId: 150896326 MOS_MIGRATED_REVID=150896326
* Fix compilation error because of vague JDK version check in compile.sh Gravatar Harsh Vardhan2017-03-22
| | | | | | | | | | Fixes: https://github.com/bazelbuild/bazel/issues/2677 -- Change-Id: Ie8518530dfd9a7eed41c44230e59afbd5724544b Reviewed-on: https://cr.bazel.build/9455 PiperOrigin-RevId: 150754975 MOS_MIGRATED_REVID=150754975
* Parse params via a built-in, and lock msys2 version Gravatar Peter Mounce2017-03-22
| | | | | | | | | | | | | @laszlocsomor - This addresses https://github.com/bazelbuild/bazel/issues/2449#issuecomment-278059161. Note - this is _not_ in the 0.4.5 package, since I was waiting for that release to go out prior to this. Closes #2690. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2690 PiperOrigin-RevId: 150745085 MOS_MIGRATED_REVID=150745085
* Build a version of Bazel with a bundled OpenJDK inside the binary.Gravatar Philipp Wollermann2017-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're using Azul Systems, Inc.'s Zulu® OpenJDK build[1], as it's a good vanilla build of OpenJDK available for our three most important platforms: zulu8.20.0.5-jdk8.0.121-linux_x64.tar.gz zulu8.20.0.5-jdk8.0.121-macosx_x64.zip zulu8.20.0.5-jdk8.0.121-win_x64.zip You can build & run a Bazel binary with an embedded JDK by simple doing: bazel build //src:bazel_with_jdk bazel-bin/src/bazel_with_jdk info The "bazel license" command prints the license of the embedded OpenJDK. We mirror the binaries and sources of the OpenJDK used for bundling on this website: https://bazel-mirror.storage.googleapis.com/openjdk/index.html RELNOTES: Bazel can now be built with a bundled version of the OpenJDK. This makes it possible to use Bazel on systems without a JDK, or where the installed JDK is too old. [1] http://www.azul.com/downloads/zulu/ -- PiperOrigin-RevId: 150440467 MOS_MIGRATED_REVID=150440467
* Filter out perf.bazel.*.nobuild for release.Gravatar Yue Gan2017-03-16
| | | | | | -- PiperOrigin-RevId: 150194302 MOS_MIGRATED_REVID=150194302
* Fix #2671 on GitHub Gravatar Peter Mounce2017-03-15
| | | | | | | | | Closes #2678. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2678 PiperOrigin-RevId: 150167309 MOS_MIGRATED_REVID=150167309
* Fix bazel_bootstrap_distfile_test on WindowsGravatar Yun Peng2017-03-09
| | | | | | | | Spaces might appear in env values, adding quote around it. -- PiperOrigin-RevId: 149642783 MOS_MIGRATED_REVID=149642783
* Env.vars: server won't ignore the client envGravatar Dmitry Lomov2017-03-08
| | | | | | | | | | | | | | | | | | Make the --ignore_client_env flag a no-op. The client will pass --client_env flags to the server even in --batch mode. This simplifies the code as well as ensuring that the server always uses the up-do-date client environment. We'll gradually get rid of all System.getenv calls in the server, because the server should always respect the client env. Roll forward of 149403129 with fixes. -- PiperOrigin-RevId: 149435060 MOS_MIGRATED_REVID=149435060
* Select the good guava jars for JDK7 buildGravatar Damien Martin-Guillerez2017-03-07
| | | | | | | | | | Manually tested with ./compile.sh and JAVA_VERSION=1.7 Fixes #2644. -- PiperOrigin-RevId: 149422627 MOS_MIGRATED_REVID=149422627
* Fix calling of test Gravatar Klaus Aehlig2017-03-07
| | | | | | | | | | | For test (a.k.a '[') the closing bracket has to be a separate argument. Fix this by adding the missing space. -- Change-Id: Ie1d64bc1fa37f85ee0c7b5520b2ba12a30c9f635 Reviewed-on: https://cr.bazel.build/9290 PiperOrigin-RevId: 149418360 MOS_MIGRATED_REVID=149418360
* Rollback of commit 94d8f4e9c8c8757aa7ab7c1a7c3e9afb34039127.Gravatar Klaus Aehlig2017-03-07
| | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** broke //src/test/shell/bazel:bazel_bootstrap_distfile_test *** Original change description *** Env.vars: server won't ignore the client env Make the --ignore_client_env flag a no-op. The client will pass --client_env flags to the server even in --batch mode. This simplifies the code as well as ensuring that the server always uses the up-do-date client environment. We'll gradually get rid of all System.getenv calls in the server, because the server should always respect the client env. -- PiperOrigin-RevId: 149416602 MOS_MIGRATED_REVID=149416602
* Env.vars: server won't ignore the client envGravatar Laszlo Csomor2017-03-07
| | | | | | | | | | | | | | | | Make the --ignore_client_env flag a no-op. The client will pass --client_env flags to the server even in --batch mode. This simplifies the code as well as ensuring that the server always uses the up-do-date client environment. We'll gradually get rid of all System.getenv calls in the server, because the server should always respect the client env. -- PiperOrigin-RevId: 149403129 MOS_MIGRATED_REVID=149403129
* Fix powershellv2 Gravatar Peter Mounce2017-03-07
| | | | | | | | | | | | | | | | | | | Powershell v2 (win7 vintage) doesn't have json cmdlets. Got a report via chocolatey.org message that this doesn't work on win7. Cried. Replaced with simpler text file based approach for separating data from code. Also fix package version fix notation bit of the automation to produce version numbers valid with chocolatey/nuspec. I've already published a fixed 0.4.5-rc2 and 0.4.4 with this * https://chocolatey.org/packages/bazel/0.4.4.20170306 * https://chocolatey.org/packages/bazel/0.4.5-rc2-20170306-124051 Closes #2633. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2633 PiperOrigin-RevId: 149314972 MOS_MIGRATED_REVID=149314972
* Convey the value of the --host_javabase startup option to the server.Gravatar Lukacs Berki2017-03-06
| | | | | | -- PiperOrigin-RevId: 149282686 MOS_MIGRATED_REVID=149282686
* Do not generate a dist archive to jdk7 Gravatar Klaus Aehlig2017-03-06
| | | | | | | | | | | | | | | Our distribution archive is supposed to contain all the original sources, as well as derived architecture-independent files needed for bootstrapping. So there should only be one distribution archive, not a separate one for jdk7, especially, as the project is moving away from java 7 soon. Change our artifact building accordingly. Closes #2250. -- Change-Id: If34afb544702bc309f722bdc2891b9dc60fe9899 Reviewed-on: https://cr.bazel.build/9190 PiperOrigin-RevId: 149104302 MOS_MIGRATED_REVID=149104302
* Rollback of commit c3102b722af6fba2a67fdfed55426471c0927ab8.Gravatar Damien Martin-Guillerez2017-03-03
| | | | | | -- PiperOrigin-RevId: 149015634 MOS_MIGRATED_REVID=149015634
* Rollback of commit 55b20c4a50642d8f1ac11cb721ecd5831f02dd76.Gravatar Damien Martin-Guillerez2017-03-03
| | | | | | | | | | | | | | *** Reason for rollback *** Broke JDK7 tests *** Original change description *** Code clean-up -- PiperOrigin-RevId: 149005807 MOS_MIGRATED_REVID=149005807
* Update to latest javac and Error ProneGravatar Liam Miller-Cushon2017-03-02
| | | | | | Fixes #2591 Change-Id: I7038b71811c54d5ece1c0993052abdffc9d0de96