Skip to content
Snippets Groups Projects
Commit 22ce85c2 authored by ckl's avatar ckl Committed by Charles Lee
Browse files

Add continuous Kokoro config for the GitHub release branch.

PiperOrigin-RevId: 219174684
GitOrigin-RevId: 5bb467f9122872ca67aa3e28205c14166578e33b
(cherry picked from commit 29ef947d)
parent 5533b263
No related branches found
No related tags found
No related merge requests found
...@@ -3,17 +3,25 @@ ...@@ -3,17 +3,25 @@
![Kokoro Ubuntu](https://storage.googleapis.com/tink-kokoro-build-badges/tink-ubuntu.png) ![Kokoro Ubuntu](https://storage.googleapis.com/tink-kokoro-build-badges/tink-ubuntu.png)
![Kokoro macOS](https://storage.googleapis.com/tink-kokoro-build-badges/tink-macos.png) ![Kokoro macOS](https://storage.googleapis.com/tink-kokoro-build-badges/tink-macos.png)
Tink is testing continuously with Tink is automatically tested using
[Kokoro](https://www.cloudbees.com/sites/default/files/2016-jenkins-world-jenkins_inside_google.pdf) [Kokoro](https://www.cloudbees.com/sites/default/files/2016-jenkins-world-jenkins_inside_google.pdf),
an internal deployment of Jenkins at Google. an internal deployment of Jenkins at Google.
Continuous builds and presubmit tests are run on Ubuntu and macOS. Continuous builds and presubmit tests are run on Ubuntu and macOS.
Presubmit tests are triggered for the pull request if one of the following ## Continuous builds
Continuous builds are triggered for every new commit to the master branch and
the current release branch.
For the master branch, at the end of a successful
continious build, a snapshot of Tink and the example apps are created and
uploaded to Maven.
## Presubmit testing
Presubmit tests are triggered for a pull request if one of the following
conditions is met: conditions is met:
- The pull request is created by a Googler. - The pull request is created by a Googler.
- The pull request is attached with a kokoro:run label. - The pull request is attached with a `kokoro:run` label.
Continuous builds are triggered for every new commit, and upload to Maven snapshot
versions of Tink and apps.
#!/bin/bash
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
####################################################################################
# Fail on any error.
set -e
# Display commands to stderr.
set -x
# Change to repo root
cd git*/tink
source ./kokoro/run_tests.sh
# Run all manual tests.
time bazel test \
--strategy=TestRunner=standalone \
--test_timeout 10000 \
--test_output=all \
//java:src/test/java/com/google/crypto/tink/subtle/AesGcmJceTest \
//java:src/test/java/com/google/crypto/tink/subtle/AesGcmHkdfStreamingTest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment