aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
* Opt out of building debian packages on darwinGravatar Yun Peng2016-07-27
| | | | | | | | | Fixes #1577 -- Change-Id: I81343d611490263bc7e16dedfbbc56f9f988f63d Reviewed-on: https://bazel-review.googlesource.com/#/c/4170 MOS_MIGRATED_REVID=128576630
* Added deploying Bazel debian source package into release processGravatar Yun Peng2016-07-27
| | | | | | | -- Change-Id: I4926b820dbab3c218ad6ead8bc6eb7b781dedd00 Reviewed-on: https://bazel-review.googlesource.com/#/c/4162 MOS_MIGRATED_REVID=128465857
* Build Bazel debian source package using BazelGravatar Yun Peng2016-07-27
| | | | | | | -- Change-Id: I8c0b6adf08a4ca64ad41e0454cb30842c133fa22 Reviewed-on: https://bazel-review.googlesource.com/#/c/4161 MOS_MIGRATED_REVID=128465441
* Bump grpc-java lib to version 0.15.0 non-binariesGravatar dapengzhang02016-07-25
| | | | | | | -- Change-Id: I2da9049019b3965975fab9b7f606d099d6eab2ff Reviewed-on: https://bazel-review.googlesource.com/#/c/4040/ MOS_MIGRATED_REVID=128208129
* Fix bash auto-completion for aliasesGravatar Damien Martin-Guillerez2016-07-22
| | | | | | | | | The label pattern was incorrectly passed around (the command was not translated into a target pattern) which resulted in the target not being completed. -- MOS_MIGRATED_REVID=128177563
* Running all java tests passing on Windows on JenkinsGravatar Yun Peng2016-07-22
| | | | | | | -- Change-Id: I3a6f5a0bce24a4f6c42ef1811f0b1587fed1c8f5 Reviewed-on: https://bazel-review.googlesource.com/#/c/4130 MOS_MIGRATED_REVID=128154259
* Export xcode_locator's source file under tools/osx/ to make it available for ↵Gravatar Chris Parsons2016-07-21
| | | | | | | reference by future repository rules. Removes the xcode-locator binary file under tools/objc. Originally, the precompiled binary was going to be referenced, but it's easier to build from source in the repository rule. -- MOS_MIGRATED_REVID=128063694
* --Gravatar Jon Brandvein2016-07-21
| | | | MOS_MIGRATED_REVID=128060563
* Add //src/test/java/com/google/devtools/build/lib:windows-tests to the set ↵Gravatar Lukacs Berki2016-07-21
| | | | | | | of tests run on Jenkins on Windows. -- MOS_MIGRATED_REVID=128053672
* Suggest using --user when the install directory isn't writable.Gravatar John Cater2016-07-20
| | | | | | | | | Fixes #1540. -- Change-Id: I0f16bde6496f2abef8ba3d3562e62a1534c177ca Reviewed-on: https://bazel-review.googlesource.com/#/c/4081/ MOS_MIGRATED_REVID=127960571
* Renamed Windows shell test and added java example testsGravatar Yun Peng2016-07-20
| | | | | | | | | I reused some functions defined in test-setup.sh and some test cases in bazel_example_test.sh -- Change-Id: Ic9a20a819bfcc52f2ff72db74d017e6cdc062fc3 Reviewed-on: https://bazel-review.googlesource.com/#/c/4090 MOS_MIGRATED_REVID=127926337
* Windows artifacts: also create output dir.Gravatar Dmitry Lomov2016-07-20
| | | | | -- MOS_MIGRATED_REVID=127923810
* Publish bazel.exe to the output directory on Windows.Gravatar Dmitry Lomov2016-07-19
| | | | | -- MOS_MIGRATED_REVID=127847570
* When running Javac and related tools, use -XX:+TieredCompilation ↵Gravatar Philipp Wollermann2016-07-18
| | | | | | | | | -XX:TieredStopAtLevel=1 instead of -client, as the latter is ignored on 64-bit JVMs since at least JDK 6. The new flags have been shown to cut down CPU time by 50% due to reduced time spent in JIT and improving overall run time for short running actions, some times also cutting them in half. -- MOS_MIGRATED_REVID=127536578
* Bootstrap Bazel with debug symbols.Gravatar Philipp Wollermann2016-07-15
| | | | | | | This helps a lot when trying to debug Bazel from an IDE. -- MOS_MIGRATED_REVID=127529499
* Add python to PATH for ci scriptGravatar Dmitry Lomov2016-07-14
| | | | | | | -- Change-Id: I7b20894240611e52b6ba9bfd10cc37e2edb24e1f Reviewed-on: https://bazel-review.googlesource.com/#/c/4032/ MOS_MIGRATED_REVID=127326078
* support sh besides bashGravatar Yue Gan2016-07-13
| | | | | -- MOS_MIGRATED_REVID=127198779
* scripts/ci/ci.sh: Prefer COMMIT_RANGE from the environment, if defined.Gravatar Ivan Vucica2016-07-12
| | | | | | | | | This should let the users wrap around ci.sh if they want to use the instructions from the comments (those related to Gerrit and Travis-CI), as opposed to having to edit the script. -- MOS_MIGRATED_REVID=127093626
* scripts/ci/ci.sh: Fix typo in comment 'origina/master' -> 'origin/master'.Gravatar Ivan Vucica2016-07-12
| | | | | -- MOS_MIGRATED_REVID=127086608
* Omit native code from default build for IDE setup.Gravatar Janak Ramakrishnan2016-07-11
| | | | | | | -- Change-Id: I12ae7bdf6b7fe5340843bc1750313556970f4c90 Reviewed-on: https://bazel-review.googlesource.com/c/4020 MOS_MIGRATED_REVID=127076309
* Make bootstrapping support a designated work dirGravatar Klaus Aehlig2016-07-11
| | | | | | | | | | | | | Change the bootstrapping process so that setting the BAZEL_WRKDIR environment variable will tell the bootstrap process to mostly write to that directory---apart from adding the symlinks next to the WORKSPACE file. So setting this variable will avoid the usual writes to random places in the file system (like /tmp and the user's home directory). -- Change-Id: I9d1af747e75cc2a7bb1af08308acc9dfd927e920 Reviewed-on: https://bazel-review.googlesource.com/#/c/3963 MOS_MIGRATED_REVID=127075535
* Rollback of commit 1e37a5375f918376c132fa537e25695f673f41b8.Gravatar Dmitry Lomov2016-07-07
| | | | | | | | | | | | | *** Reason for rollback *** Apparently we now try to open output files for the process twice: once when we are constructing the output streams, and the second time when we tell the process to redirect its outputs. This causes the outputs to be empty on Windows *** Original change description *** Do redirection of stdout / stderr in Java instead of reimplementing it in every process wrapper again. -- MOS_MIGRATED_REVID=126801016
* Add a warning about GPL part on the release note shipped to Github.Gravatar Damien Martin-Guillerez2016-07-07
| | | | | | | | | So people don't redistribute the binaries without the sources. -- Change-Id: Ia3f91285d40669f8aa367633bb54214e9fdf1454 Reviewed-on: https://bazel-review.googlesource.com/#/c/3954 MOS_MIGRATED_REVID=126681605
* Update the Java gPRC libraries to 0.14.1 .Gravatar Lukacs T. Berki2016-07-06
| | | | | | This makes the regeneration instruction in much simpler (since now they do publish 64-bit Linux binaries), and more importantly, fixes a race condition between a client request and the gRPC server timeout thread. Change-Id: I9c8b628530fa0192804f8e67b285963ac26110c4
* Display all allowed types for SkylarkSignature Params that allow multipleGravatar David Chen2016-07-05
| | | | | | | | | | | | | | | | | | | types. Fixes #921 Certain parameters, such as the `executable` and `command` parameters of ctx.action, allow multiple types. However, the allowed types are not enumerated in the SkylarkSignature annotation, causing the generated Skylark Library document to not display any type information for those params. This change adds a new field, `allowedTypes`, to `SkylarkSignature` that is a list of `ParamType` objects. If the param can accept multiple types, then `type` is set to `Object.class`, and `allowedTypes` is set to the list of types that can be accepted. -- MOS_MIGRATED_REVID=126617047
* Adds a GPL warning to the binary installerGravatar Damien Martin-Guillerez2016-07-04
| | | | | | | | | Also remove some bashism to fix #1456. -- Change-Id: I374f1290a3eb9e9e5bcc48e19a1c0ab1c5bdaa99 Reviewed-on: https://bazel-review.googlesource.com/#/c/3952/ MOS_MIGRATED_REVID=126572632
* buildenv.sh: clean up each tmpdir onceGravatar Klaus Aehlig2016-07-04
| | | | | | | | | | | | | | | | | | | ...instead of cleaning up the last one once for each tmpdir. Commit 63e8d6321 changed the command registered atexit from an explict "rm -rf '${DIR}'" to a call to a cleanup_tempdir function, with the function containing the remove command. As, however, the function name is not unique (in fact, it is a constant), that function will get overridden at each invocation of the tempdir function. The fact that the function is registered several times with atexit doesn't help, as it will always remove the last created temporary directory. Fix this, by creating function names that encode the directory to be removed in the name. Fixes #1466. -- Change-Id: I833aef8ee5423412f058e74c8c9e2f4bb53a0cba Reviewed-on: https://bazel-review.googlesource.com/#/c/3955 MOS_MIGRATED_REVID=126406196
* Add all the sources to //:srcs filegroup and add a check to detectGravatar Damien Martin-Guillerez2016-07-01
| | | | | | | | | | | missing file to it. We need to activate this check on presubmits -- Change-Id: Ia95e92d3816ce92bb69bc0e2cf56e9c60b68d970 Reviewed-on: https://bazel-review.googlesource.com/#/c/3949/ MOS_MIGRATED_REVID=126404792
* Fixed Bazel deb package dependency on Ubuntu 16.04Gravatar Yun Peng2016-07-01
| | | | | | | | | | Declare openjdk-9-jdk as Conflicts Progress towards #1456 -- Change-Id: I67c17b78f90f81dbcc9c39bf6f3915789662fa94 Reviewed-on: https://bazel-review.googlesource.com/#/c/3951 MOS_MIGRATED_REVID=126402113
* Remove superfluous libdd_plist.jarGravatar Damien Martin-Guillerez2016-07-01
| | | | | | | | | We have the source so build from sources instead. This was causing strange behavior were the input file was conflicting with the output file of the corresponding java_library but was matched by the glob. Change-Id: Ie0b70215d1862627747bd7b83f075743c904c967
* Rename the property io.bazel.UnixFileSystem to io.bazel.EnableJni because ↵Gravatar Lukacs Berki2016-07-01
| | | | | | | | | that's what it does. In particular, it affects Windows. -- MOS_MIGRATED_REVID=126293339
* Do redirection of stdout / stderr in Java instead of reimplementing it in ↵Gravatar Philipp Wollermann2016-06-30
| | | | | | | every process wrapper again. -- MOS_MIGRATED_REVID=126279021
* Teach serve-docs.sh to generate a static web site.Gravatar Dmitry Lomov2016-06-27
| | | | | | | -- Change-Id: Ic75d8f1d05b0ccba2faaad6527ab2719612325d8 Reviewed-on: https://bazel-review.googlesource.com/#/c/3892/ MOS_MIGRATED_REVID=125779082
* Do not require users to set TMPDIR for bootstrap on Windows.Gravatar Dmitry Lomov2016-06-24
| | | | | | | | | Fixes 1444. -- Change-Id: If9afa2bebcd35b0c0882685588d8e1f3b18f5344 Reviewed-on: https://bazel-review.googlesource.com/#/c/3890/ MOS_MIGRATED_REVID=125771832
* Fix quoting in arguments to [Gravatar Klaus Aehlig2016-06-23
| | | | | | | | | | | | | When comparing two strings with test(1) we need to make sure that the strings are passed each as precisely one argument to test (a.k.a. [). Shell variables, like $1, however may expand to zero or more arguments; hence quote appropriately. -- Change-Id: I7fd1cee970ed24e6c332b0da361bc916aafcb006 Reviewed-on: https://bazel-review.googlesource.com/#/c/3881 MOS_MIGRATED_REVID=125671405
* Update serve-docs.sh to allow easily rebuilding the docs and restarting ↵Gravatar Alex Humesky2016-06-23
| | | | | | | jekyll by pressing "r". -- MOS_MIGRATED_REVID=125593474
* Description redacted.Gravatar Carmi Grushko2016-06-23
| | | | | -- MOS_MIGRATED_REVID=125589653
* Replace #!/bin/bash -eu with #!/bin/bash and "set -eu". Otherwise, the "-eu" ↵Gravatar Philipp Wollermann2016-06-21
| | | | | | | | | is not picked up when you run the scripts manually using "bash script.sh". This is also in our shell style guide: "Executables must start with #!/bin/bash and a minimum number of flags. Use set to set shell options so that calling your script as bash <script_name> does not break its functionality." -- MOS_MIGRATED_REVID=125450962
* Make serve-doc script work with the version of jekyll that comes with apt-getGravatar Kristina Chodorow2016-06-21
| | | | | -- MOS_MIGRATED_REVID=125449782
* When running Java-based tools, use -XX:+TieredCompilation ↵Gravatar Philipp Wollermann2016-06-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -XX:TieredStopAtLevel=1 instead of -client, as the latter is ignored on 64-bit JVMs since at least JDK 6. The new flags have been shown to cut down CPU time by 50% due to reduced time spent in JIT and improving overall run time for short running actions, some times also cutting them in half. Here's a benchmark of Bazel building itself, giving a nice 2-4x speedup: ./output/bazel clean && ./output/bazel build //src:bazel Bazel before this change: INFO: Elapsed time: 197.783s, Critical Path: 194.10s INFO: Elapsed time: 198.928s, Critical Path: 195.65s INFO: Elapsed time: 194.913s, Critical Path: 191.56s Bazel before this change with --strategy=Javac=worker: INFO: Elapsed time: 130.436s, Critical Path: 124.27s INFO: Elapsed time: 116.114s, Critical Path: 112.30s INFO: Elapsed time: 116.852s, Critical Path: 84.45s Bazel with this change: INFO: Elapsed time: 121.625s, Critical Path: 119.08s INFO: Elapsed time: 119.401s, Critical Path: 115.80s INFO: Elapsed time: 121.198s, Critical Path: 119.03s Bazel with this change and --strategy=Javac=worker: INFO: Elapsed time: 54.456s, Critical Path: 51.28s INFO: Elapsed time: 53.272s, Critical Path: 51.09s INFO: Elapsed time: 52.966s, Critical Path: 49.86s Bazel with this change and --strategy=Javac=worker and stripping -XX:TieredStopAtLevel=1 from JVM flags when using workers: INFO: Elapsed time: 61.599s, Critical Path: 58.93s INFO: Elapsed time: 48.695s, Critical Path: 45.02s INFO: Elapsed time: 46.874s, Critical Path: 43.91s INFO: Elapsed time: 46.174s, Critical Path: 43.32s (The latter is a possible optimization for workers and it's also nice to know that the limited tiered compilation does not hurt their performance.) -- MOS_MIGRATED_REVID=125448089
* Disable runfiles on Windows.Gravatar Dmitry Lomov2016-06-21
| | | | | | | | | | | | This adds a new configuration option that allows disabling the creation of symlink forest for runfiles. On Windows, symlink forest is disabled by default; only the runfiles manifest is created. For shell tests, a function 'rlocation' is provided that converts from runfiles location to a real location. Work towards #1212. -- MOS_MIGRATED_REVID=125439553
* Get rid of --nodeep_execroot referenceGravatar Kristina Chodorow2016-06-21
| | | | | | | Not that it does anything, but let's not encourage people. -- MOS_MIGRATED_REVID=125334321
* Rollback of commit bdfd58a8ca2ed5735d6aaa5b238fb0f689515724.Gravatar Laurent Le Brun2016-06-20
| | | | | -- MOS_MIGRATED_REVID=125160288
* Make setup-intellij.sh work again.Gravatar Lukacs Berki2016-06-17
| | | | | | | This is purely symptomatic treatment; setup-intellij.sh is just an evil hack until we can get proper IDE integration up and running, so it will do for the time being. -- MOS_MIGRATED_REVID=125136689
* Make the execution root match the runfiles tree structure for external ↵Gravatar Kristina Chodorow2016-06-17
| | | | | | | | | | | | | | | | | | | | | repositories One interesting side effect of how this is implemented is that for external repositories, bin/ and genfiles/ are combined. External repo output is under bazel-out/local-fastbuild/repo_name for each repo. Fixes #1262. RELNOTES[INC]: Previously, an external repository would be symlinked into the execution root at execroot/local_repo/external/remote_repo. This changes it to be at execroot/remote_repo. This may break genrules/Skylark actions that hardcode execution root paths. If this causes breakages for you, ensure that genrules are using $(location :target) to access files and Skylark rules are using http://bazel.io/docs/skylark/lib/File.html's path, dirname, etc. functions. -- MOS_MIGRATED_REVID=125095799
* Delete eclipse_generate.shGravatar Damien Martin-Guillerez2016-06-10
| | | | | | | | | | This is no longer maintained and is now replaced by e4b: https://github.com/bazelbuild/e4b Fixes #12. -- MOS_MIGRATED_REVID=124545211
* Make Windows build failure UNSTABLE instead of FAILURE.Gravatar Dmitry Lomov2016-06-02
| | | | | -- MOS_MIGRATED_REVID=123862681
* Move xcode-locator into src/tools packages, defining it as a target under ↵Gravatar Chris Parsons2016-05-30
| | | | | | | @bazel_tools. Currently the tool still remains in embedded_binaries, but we will migrate away from that: Eventually it can simply live just under @bazel_tools. -- MOS_MIGRATED_REVID=123436822
* Remove the setting of APT gpg key pathGravatar Yun Peng2016-05-25
| | | | | | | | | | It should be put into the deploy slave configuration in BUILD file. Also the APT gpg key id. -- Change-Id: I3d61bd1998bd282e74ba00867f46e60f93c69b6a Reviewed-on: https://bazel-review.googlesource.com/#/c/3708 MOS_MIGRATED_REVID=123195119
* Push documentation to GCS instead of Github pages.Gravatar Damien Martin-Guillerez2016-05-25
| | | | | | | | | | | | | | | | www.bazel.io is now served from GCS and this change archive the site on CI and adds a function to do the push to GCS. Another change to github pages is needed to redirect http://bazel.io to http://www.bazel.io and a change to ci.bazel.io to add the job that calls the added method. Moving towards #47. -- MOS_MIGRATED_REVID=123126457