aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/ci/build.sh
Commit message (Collapse)AuthorAge
* Move debian package building into its own package. Gravatar John Cater2017-01-31
| | | | | | | | | | | | | | | As more package options are added, it's confusing that the debian package is generated in scripts/package/BUILD, but scripts/package/debian/ contains the related files (and isn't itself a Bazel package). This change makes the file locations more predictable, and also makes it easier to see what is happening in scripts/packages. -- Change-Id: Id8c445fc164a1a4aa09c52559a5143578cfdea88 Reviewed-on: https://cr.bazel.build/8510 PiperOrigin-RevId: 146003934 MOS_MIGRATED_REVID=146003934
* For the time being, only test building on freebsd Gravatar Klaus Aehlig2017-01-20
| | | | | | | | | | | | The targets //site:jekyll-tree and //scripts/packages currently fail due to the python rules. They will be reenabled, once those are fixed in a released version. -- Change-Id: I54a8bcad87b153e2eb4e86f8e4d76d1d92f00bf9 Reviewed-on: https://cr.bazel.build/8397 PiperOrigin-RevId: 145066780 MOS_MIGRATED_REVID=145066780
* On FreeBSD as well, the sha256 binary is not called sha256sumGravatar Klaus Aehlig2017-01-19
| | | | | | | | -- Change-Id: Ia527ef1616546044e61a103749ff22191b24cb11 Reviewed-on: https://cr.bazel.build/8394 PiperOrigin-RevId: 144963679 MOS_MIGRATED_REVID=144963679
* Debian repository: override section and priority fieldsGravatar Damien Martin-Guillerez2016-12-20
| | | | | | | | | | | | | | | | | | Those field are not added to the dsc file and reprepro has started failing. Reproducing the whole set-up is almost impossible so I am sending this and will trigger a test release. Also use release label instead of release name so we get the rc number (for some reason this was not included in previous release). Fixes #2256. To be cherry-picked for #2246 -- Change-Id: Ia0b879a24f1288cbbbb843013d41725fb1ddb569 Reviewed-on: https://cr.bazel.build/8032 PiperOrigin-RevId: 142537787 MOS_MIGRATED_REVID=142537787
* Fix release notes in emailsGravatar Damien Martin-Guillerez2016-12-20
| | | | | | | | | | To be cherry-picked for #2246. -- Change-Id: I50bbd7dc00e4305f36d9a2a3a8841d6d9bcd2bd7 Reviewed-on: https://cr.bazel.build/8034 PiperOrigin-RevId: 142524920 MOS_MIGRATED_REVID=142524920
* Do not patch WORKSPACE in the release processGravatar Klaus Aehlig2016-12-02
| | | | | | | | | | | | While we do need changes for certain test to refer to a local copy of android SDKs, we do not want those changes in the environment where we build the release artefacts (in particular the distribution artefact). -- Change-Id: I471a8c23efea389f52cd7b07b8511f69d16b8d3d Reviewed-on: https://cr.bazel.build/7592 MOS_MIGRATED_REVID=140831994
* Bazel release script: fix `gsutil -m`Gravatar Laszlo Csomor2016-11-30
| | | | | | | | | commit f17fb3a816851b9f3a954c881e3fbc35bed5d6a6 added the `-m` in the wrong location, causing the gsutil command to fail, e.g. http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel-Release/87/console -- MOS_MIGRATED_REVID=140589924
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* Create APT repository for Bazel during release processGravatar Yun Peng2016-05-25
| | | | | | | -- Change-Id: I1a817ebcd5a7ea644f6566f92d209548948679af Reviewed-on: https://bazel-review.googlesource.com/#/c/3702 MOS_MIGRATED_REVID=123124232
* Refactor JDK 7 build to use the vendored version of itGravatar Damien Martin-Guillerez2016-04-20
| | | | | | | | | | | | | Along the path, fix the build for JDK 7 and get rid of most ugliness in the JDK 7 build. Now simply setting JAVA_VERSION to 1.7 will build a JDK 7 compatible version. Fixes #1159. -- Change-Id: I9599283844a57d9e053f12d37445907f22a9232e Reviewed-on: https://bazel-review.googlesource.com/#/c/3452 MOS_MIGRATED_REVID=120332747
* Rollback of commit 6cb8d820689ad029a9d0dc4ee1100db9b2d96515.Gravatar Damien Martin-Guillerez2016-04-14
| | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks ci.bazel.io While the basics for fixing the build is easy (just a few typos in packages building), fixing the test is a bit more tricky. I see only one solution for fixing the test: use a select statement that would select the good bazel version but that would always pull JavaBuilder as an external dependency when we do test. Better roll this back then check the JavaBuilder 0.1.0 as a binary in third_party before rolling forward (a similar change is still needed to decouple running the test and building the binary for JDK 7) *** Original change description *** Refactor build for JDK 7 Now the JDK 7 tuning happens all in Bazel, removing logic from the CI script. It uses remote repositories to access JDK 7 dependencies. -- MOS_MIGRATED_REVID=119773123
* Refactor build for JDK 7Gravatar Damien Martin-Guillerez2016-04-13
| | | | | | | | | | | Now the JDK 7 tuning happens all in Bazel, removing logic from the CI script. It uses remote repositories to access JDK 7 dependencies. -- Change-Id: Iff590c6642ca5b2343aa15096f8fd837d1c80787 Reviewed-on: https://bazel-review.googlesource.com/#/c/3327 MOS_MIGRATED_REVID=119634530
* Fix installer under OS XGravatar Damien Martin-Guillerez2016-01-11
| | | | | | | | | The installer was missing the StdRedirect.dylib after a recent change. This was breaking the Tutorial job on ci.bazel.io (and iOS builds using that installer). -- MOS_MIGRATED_REVID=111855462
* Use openjdk7 as dependency for debian package of jdk7 flavorGravatar Damien Martin-Guillerez2016-01-07
| | | | | | | Fixes #752. -- MOS_MIGRATED_REVID=111614541
* release process: Fix _ in the index files of release candidatesGravatar Damien Martin-Guillerez2015-11-25
| | | | | | | Manually tested with `source scripts/ci/build.sh; create_index_html rc2` where rc2 is the folder from 0.1.2rc2. -- MOS_MIGRATED_REVID=108630774
* Introduce debian and tar packaging rulesGravatar Damien Martin-Guillerez2015-10-09
| | | | | | | | | | | This refactor a bit the docker rules to reuse the tarball construction. Also introduce the debian archive for the release process. RELNOTES[NEW]: Debian and tar packaging is now supported (see tools/build_defs/pkg/README.md). -- MOS_MIGRATED_REVID=105053604
* [ci] Do not exit on successGravatar Damien Martin-Guillerez2015-10-05
| | | | | | | | | | | Before, CI was exiting when an exit code of 0 was returned, failing to build the installer script. Tested with `bash -c 'source scripts/ci/build.sh; bazel_build output/ci'` and checking output/ci for the installer. -- MOS_MIGRATED_REVID=104647177
* Fix Java 7 test suiteGravatar Damien Martin-Guillerez2015-10-02
| | | | | | | | | | | | | - Prevent test from JavaBuilder to be run (mark them as JDK8 only). - Hack to replace the JavaBuilder target so that test that needs JavaBuilder will depends on the pre-built binary version. Tested: bash -c 'export JAVA_VERSION=1.7; source scripts/ci/build.sh; bazel_build' (and verified that there is no build failure). We might still have failing tests (worker and runfiles) but the failure seems like flakiness. -- MOS_MIGRATED_REVID=104504123
* [ci] Do not fail on test failureGravatar Damien Martin-Guillerez2015-10-02
| | | | | | | | | | | Instead set a BUILD_UNSTABLE=1 environment variable such as a subsequent change to Jenkins can mark our build as unstable instead of failed when we have test flakiness. This would also allow to test the Tutorial with flaky builds. -- MOS_MIGRATED_REVID=104501213
* Fix our Java 7 buildGravatar Damien Martin-Guillerez2015-10-02
| | | | | | | | | | | | | | | | | | - Follow redirects when downloading files: The github provided file lies after several redirect, giving a bad jars (see http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=linux-x86_64/144/console). - Remove building tools as part of the determinism tests: With recent update, JavaBuilder can no longer be built with Java 7, so we use a pre-built binary from version 0.1.0. However, the determinism test was still using it as a point of comparison. Removing tools from the determinism test prevent building JavaBuilder without giving up on testing actual determinism (building Bazel already contains all the edge-cases). Tested with `bash -c 'export JAVA_VERSION=1.7; source scripts/ci/build.sh; bazel_build'` -- MOS_MIGRATED_REVID=104480161
* Fix build for JDK 7Gravatar Damien Martin-Guillerez2015-10-01
| | | | | | | | | The latest update of javac broke JDK 7 because we were using a JavaBuilder that is not synced with the javac. Fix it by using javac from our 0.1.0 release. -- MOS_MIGRATED_REVID=104431158
* Rationalize copyright headersGravatar Damien Martin-Guillerez2015-09-25
| | | | | | | | | | | The headers were modified with `find . -type f -exec 'sed' '-Ei' 's|Copyright 201([45]) Google|Copyright 201\1 The Bazel Authors|' '{}' ';'` And manual edit for not Google owned copyright. Because of the nature of ijar, I did not modified the header of file owned by Alan Donovan. The list of authors were extracted from the git log. It is missing older Google contributors that can be added on-demand. -- MOS_MIGRATED_REVID=103938715
* 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
* 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
* 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
* Change URLs to bazelbuildGravatar Kristina Chodorow2015-09-01
| | | | | -- MOS_MIGRATED_REVID=102022958
* Renamed the installer to bazel-$VERSION-installer-$PLATFORM.shGravatar Damien Martin-Guillerez2015-08-31
| | | | | -- MOS_MIGRATED_REVID=101929112