aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
Commit message (Collapse)AuthorAge
* Make setup-intellij.sh work again.Gravatar Lukacs Berki2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103736505
* Enforce UTF-8 encoding in bootstrappingGravatar Damien Martin-Guillerez2015-09-21
| | | | | | | This is breaking our CI system. Also removed the UTF-8 quotes. -- MOS_MIGRATED_REVID=103534994
* Requires JDK 8Gravatar Damien Martin-Guillerez2015-09-15
| | | | | | | | | | | | This change deprecate JDK 7 as JavaBuilder follow changes in Java 9 and might use Java 8 features. We will maintain a build with the JDK 7 as long as possible but this build won't include updates in JavaBuilder. RELNOTES[INC]: Bazel requires JDK 8 to run. -- MOS_MIGRATED_REVID=103069207
* Allow CI to run the build script without storing the output artifactsGravatar Damien Martin-Guillerez2015-09-15
| | | | | | | | This a first step toward supporting platform that does not requires to generate released artifacts. -- MOS_MIGRATED_REVID=102999025
* Add the filename to SHA256 filesGravatar Damien Martin-Guillerez2015-09-11
| | | | | | | Fixes #440 -- MOS_MIGRATED_REVID=102739492
* Fix release to github scriptGravatar Damien Martin-Guillerez2015-09-09
| | | | | | | | | | | github-release actually takes a glob, not a list of file and tmpdir was not global so because errexit was set it leads to the job failing. Tested by simulating a release environment on my machine but we cannot fully test it until the next release. -- MOS_MIGRATED_REVID=102642172
* --Gravatar Damien Martin-Guillerez2015-09-09
| | | | MOS_MIGRATED_REVID=102637361
* Fix the installer and fixing the package shiped into binary version of Bazel.Gravatar Damien Martin-Guillerez2015-09-08
| | | | | -- MOS_MIGRATED_REVID=102567966
* Remove BUILD.glob and incorporate the necessary filegroups into the ↵Gravatar Lukacs Berki2015-09-08
| | | | | | | | | android_{ndk,sdk}_repository rules themselves. This is to that the Android tests also work on OS X (otherwise, we'd end up creating a file called "BUILD" in its root, which doesn't work, because it already has a directory called "build") -- MOS_MIGRATED_REVID=102484286
* Installer: ship the Bash completion script and add a finish messageGravatar Damien Martin-Guillerez2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102343488
* Run bazel to unpack the install base at the end of the installerGravatar Damien Martin-Guillerez2015-09-04
| | | | | | | | This will make the user experience a bit nicer as it should make the first run of bazel faster. -- MOS_MIGRATED_REVID=102338873
* Unbreak the CI on DarwinGravatar Damien Martin-Guillerez2015-09-04
| | | | | | | How comes this is ok on linux??? -- MOS_MIGRATED_REVID=102338200
* Adds some safety checks in the Bazel installerGravatar Damien Martin-Guillerez2015-09-04
| | | | | | | Without those check, a wrong call can wipe unwanted stuff -- MOS_MIGRATED_REVID=102337203
* Setup the ci build to test also Android tests when availableGravatar Damien Martin-Guillerez2015-09-04
| | | | | | | | | | | | With this script, the easiest way to run the test suite is now: bash -c "export ANDROID_SDK_PATH=$HOME/bin/android-sdk-linux; \ export ANDROID_NDK_PATH=$HOME/bin/android-ndk-r10e; \ source ./scripts/ci/build.sh; \ bazel_build output/ci" -- MOS_MIGRATED_REVID=102334239
* Do not remove the bin directory before installing.Gravatar Damien Martin-Guillerez2015-09-02
| | | | | -- MOS_MIGRATED_REVID=102124504
* Change URLs to bazelbuildGravatar Kristina Chodorow2015-09-01
| | | | | -- MOS_MIGRATED_REVID=102022958
* Bazel installer: removing trailing quote in bazelrcGravatar Damien Martin-Guillerez2015-08-31
| | | | | -- MOS_MIGRATED_REVID=101960679
* Renamed the installer to bazel-$VERSION-installer-$PLATFORM.shGravatar Damien Martin-Guillerez2015-08-31
| | | | | -- MOS_MIGRATED_REVID=101929112
* Add detections for installed JDK and unzip in the Bazel installer.Gravatar Damien Martin-Guillerez2015-08-31
| | | | | -- MOS_MIGRATED_REVID=101926016
* Add the tools/defaults/BUILD file to the installer scriptGravatar Damien Martin-Guillerez2015-08-31
| | | | | | | | This file is a dummy and cannot be extracted from the Bazel workspace so create it. -- MOS_MIGRATED_REVID=101925956
* Fix word wrapping determinism on BSD / LinuxGravatar Damien Martin-Guillerez2015-08-27
| | | | | | | | | | fmt behaves totally differently depending on the version and on the OS, use fold instead that has a consistent behaviour accross platform. Tested with bazel test //scripts/release/... on OSX and Linux. -- MOS_MIGRATED_REVID=101567574
* Port to FreeBSD.Gravatar Doug Rabson2015-08-26
| | | | | | | -- Change-Id: I4e65cc583e758d2f7e45209ffcb37f6a871e2ed7 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/1840 MOS_MIGRATED_REVID=101462155
* Execute spawns inside sandboxes to improve hermeticity (spawns can no longer ↵Gravatar Philipp Wollermann2015-08-26
| | | | | | | | | | | | use non-declared inputs) and safety (spawns can no longer affect the host system, e.g. accidentally wipe your home directory). This implementation works on Linux only and uses Linux containers ("namespaces"). The strategy works with all actions that Bazel supports (C++ / Java compilation, genrules, test execution, Skylark-based rules, ...) and in tests, Bazel could successfully bootstrap itself and pass the whole test suite using sandboxed execution. This is not the default behavior yet, but can be activated explicitly by using: bazel build --genrule_strategy=sandboxed --spawn_strategy=sandboxed //my:stuff -- MOS_MIGRATED_REVID=101457297
* Require an android_local_tools_repository stanza in the WORKSPACE file so ↵Gravatar Lukacs Berki2015-08-26
| | | | | | | | | | | | | | | that Bazel finds Android tools and update the tools themselves to handle their new location. This paves the way for eventually referencing every tool this way. We have to figure out if android_http_tools_repository is the right way to distribute the Android tools, but now that we don't have a binary distribution yet, it's not an immediate problem. This will break existing users of Android support in Bazel, whom I'll inform over bazel-discuss. Fixes #384. -- MOS_MIGRATED_REVID=101456190
* Make setup-intellij.sh work again.Gravatar Lukacs Berki2015-08-26
| | | | | | | It rotted somewhere along the way and tried to build Objective C tools on Linux, and unsurprisingly, failing. -- MOS_MIGRATED_REVID=101445358
* CI scripts: another fix after moving from .ci/ to scripts/ciGravatar Damien Martin-Guillerez2015-08-18
| | | | | -- MOS_MIGRATED_REVID=100915378
* CI scripts: fix path to common.shGravatar Damien Martin-Guillerez2015-08-17
| | | | | | | | Moving it to scripts/ci let that unchanged and that results in an error in the CI system. -- MOS_MIGRATED_REVID=100825881
* Tweak CI script to not run tests tagged as manual.Gravatar Erik Kuefler2015-08-17
| | | | | | | -- Change-Id: I424db210611f94b986eda872626a97415221fcea Reviewed-on: https://bazel-review.googlesource.com/1800 MOS_MIGRATED_REVID=100806076
* CI scripts for the release processGravatar Damien Martin-Guillerez2015-08-17
| | | | | | | | | | | | | | It provides method to build, package and deploy artifacts, as well as constructing announcement mails: - bazel_build build bazel with the good label, execute the tests, build the packages and copy the artifacts into a release directory. - bazel_release deploy the relase to GCS and Github and send an announcement mail. -- Change-Id: I68f5a600c0718fac5fa12423d1cb8e0cc86728b5 Reviewed-on: https://bazel-review.googlesource.com/#/c/1811 MOS_MIGRATED_REVID=100805636
* Add native support for linux on ARM Cpu (32 bits)Gravatar Zhong Wang2015-08-12
| | | | | | | -- Change-Id: Ia70ca1b8482e10bc1ac91799aa238f8613e5c824 Reviewed-on: https://bazel-review.googlesource.com/#/c/1801 MOS_MIGRATED_REVID=100476467
* Avoid command line argument mangling on Windows.Gravatar Dmitry Lomov2015-08-12
| | | | | | | | | | | | | | exec(3) under mingw converts every command line argument that looks like Unix path into Windows path when executing non-mingw images (criteria for non-mingw image is that the image does not depend on msys-<version>.dll). This affects bazel labels (`//foo:bar` becomes `/foo:bar` for example). This CL: 1) Replaces usage of execv(3) with Windows-native CreateProcess. 2) Converts all command line arguments that are indeed paths into Windows paths. -- MOS_MIGRATED_REVID=100386350
* Fix //scripts/release:release_testGravatar Damien Martin-Guillerez2015-07-30
| | | | | | | Fixes #341 -- MOS_MIGRATED_REVID=99458831
* Disable failing Bazel release test so that we can push.Gravatar Lukacs Berki2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99383290
* Bazel release process scriptsGravatar Damien Martin-Guillerez2015-07-29
| | | | | | | | | | | | | | | | | | Those scripts are made to handle the soon to be Bazel release process. It is still missing the CI part that deploys built artifacts and sends announcement mails. It uses the RELNOTES: tag (RELNOTES for a simple change, RELNOTES[NEW] for a new feature, RELNOTES[INC] for an incompatible change) to create the CHANGELOG.md file. The main entry point is scripts/release/release.sh and should be the only script called directly. -- Change-Id: I6e066fda4d862ce793cc03dc8bdf0b8cb34f7c2c Reviewed-on: https://bazel-review.googlesource.com/#/c/1580/ MOS_MIGRATED_REVID=99282250
* Create a binary packager for BazelGravatar Damien Martin-Guillerez2015-07-29
| | | | | | | | | | | | | | | | | This packager can be called by the release scripts to generate a self-extractable bash installer for Bazel. This script was tested by hand as extra arguments can be specified to change the default install of Bazel (default is system-wide and with the argument you can make a user install). This will be the only packager for now since GitHub is offering the possibility to download the source tree as a ZIP. Hopefully, before the end of the year we could build some more package kind. -- Change-Id: I1a2d0cd39b9e4adcaf6c984ec4c855a04213b61a Reviewed-on: https://bazel-review.googlesource.com/1581 MOS_MIGRATED_REVID=99258828
* Make intellij setup not recompile bazel quite as muchGravatar Kristina Chodorow2015-07-27
| | | | | | | | | Also removed tools/jdk/jdk check (as it's not created anymore) added dash to the excluded dirs. Fixes #295. -- MOS_MIGRATED_REVID=99175421
* Release note scripts: fix fmt usage under LinuxGravatar Damien Martin-Guillerez2015-07-27
| | | | | | | | | | | For some strange reason fmt do not try to fill the line by default under GNU/Linux. This is using a wrapper around fmt to fix //scripts/release:relnotes_test on Linux. Fixes #331. -- MOS_MIGRATED_REVID=99165254
* Add --noshow_progress when performing queries in the CI script.Gravatar Erik Kuefler2015-07-27
| | | | | | | | | | Progress messages here mostly consist of package loading messages that aren't very interesting in this context. -- Change-Id: Ifee2ce5979ea47eb06cff199670fc5ed2218c139 Reviewed-on: https://bazel-review.googlesource.com/#/c/1730/ MOS_MIGRATED_REVID=99163320
* Bazel release notes creationGravatar Damien Martin-Guillerez2015-07-27
| | | | | | | | | | | | This script uses the RELNOTES: tag (RELNOTES for a simple change, RELNOTES[NEW] for a new feature, RELNOTES[INC] for an incompatible change) to create the CHANGELOG.md file. -- Change-Id: If457a0a85f4a9ceddf822393d0aeb8b60c54136b Reviewed-on: https://bazel-review.googlesource.com/#/c/1583/ MOS_MIGRATED_REVID=99020942
* Use blaze_util_mingw.cc for bootstrapping on Windows.Gravatar Dmitry Lomov2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99015580
* Wrap zip step into run_silent in compile.shGravatar Damien Martin-Guillerez2015-07-23
| | | | | | | | | Ordering of message were confusing if the zip step was failing. Fixes #319 -- MOS_MIGRATED_REVID=98932569
* Set up protobuf compilers on Windows correctly for bootstrapping.Gravatar Googler2015-07-23
| | | | | -- MOS_MIGRATED_REVID=98815600
* Adds main/java/src to the base workspace. This is to enable ↵Gravatar Alex Humesky2015-07-23
| | | | | | | src/tools/android/java/com/google/devtools/build/android:android_builder_lib to depend on src/main/java:options. -- MOS_MIGRATED_REVID=98772591
* Update setup-intellij to get it working again.Gravatar Janak2015-07-13
| | | | | | | | | | | | | | | | This is just based on what I had to do to get IntelliJ working with Bazel at head, but I think it makes things simpler as well. Main changes: * External jars are supported (I think); * Protobufs are imported en masse via a "directory" module library; * We now include all Android files unless it looks like we won't be able to compile them. -- Change-Id: Ib2ce59f6636f0d262b05f89d57837d7018a0fbfc Reviewed-on: https://bazel-review.googlesource.com/1611 MOS_MIGRATED_REVID=98118522
* Adds gen jar and manifest proto outputs.Gravatar Alex Humesky2015-07-10
| | | | | | | Adds a jar output to Java and Android rules which contains the class files for source files generated from Java annotation processors. For a java_binary foo, the jar will be foo-gen.jar, and for a java_library foo the jar will be libfoo-gen.jar, and similarly for Android. Also adds a binary serialized proto manifest file output to Java and Android rules which describes the contents of the output class jar of those rules, which is used to create the -gen.jar. See src/main/protobuf/java_compilation.proto. -- MOS_MIGRATED_REVID=97793715
* Make intellij-setup.sh work again. Gravatar Lukacs Berki2015-07-02
| | | | | | | As a drive-by fix, add correct deps to //src/test/java:skylarkshell . Why don't we build that in our tests? -- MOS_MIGRATED_REVID=97404777
* rm -rf "${base_workspace}/src" since it is a directory.Gravatar David Chen2015-07-02
| | | | | | | Fixes #272 -- MOS_MIGRATED_REVID=97402007
* Link in src/tools/android to base_workspace.Gravatar Lukacs Berki2015-06-30
| | | | | | | This fixes #267 to some degree. An update to the tools/ directory will still be required. -- MOS_MIGRATED_REVID=97228079
* Update CI script to build against a common ancestor of origin/master and HEADGravatar Thomas Broyer2015-06-29
| | | | | | | | | | Also give advice for some changes to make to the script depending on the environment and events triggering the script. -- Change-Id: Ic230d96c29785c8df392b72fc4809eb7703fafff Reviewed-on: https://bazel-review.googlesource.com/#/c/1570/ MOS_MIGRATED_REVID=97118314
* Create an example script for CI servers.Gravatar Andrew Z Allen2015-06-26
| | | | | | | | | | | | | This script looks at the files changed in git against origin/master and queries for all build and test targets associated with those files. Running this script on a CI server should allow you to only test the things that have changed since the last time your merged. -- Change-Id: I30d33e21eff370b795e1055c7150906f2a6782cd Reviewed-on: https://bazel-review.googlesource.com/#/c/1470 MOS_MIGRATED_REVID=96849243