forked from ccwienk/containerregistry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·41 lines (34 loc) · 1.16 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
sudo: required
dist: trusty
language:
- java
jdk:
- oraclejdk8 # Building Bazel requires JDK8.
services:
- docker
before_install:
# Log into DockerHub
- docker login -u googlecontainerregistrytesting -p "${GCRT_PASSWORD}"
# Log into GCR
- docker login -u _json_key -p "${GCR_JSON_KEY}" https://gcr.io
# Log into Quay.io
- docker login -u googlecontainerregistrytesting -p "${GCRT_PASSWORD}" quay.io
# Log into bintray with an API KEY
- |
docker login -u googlecontainerregistrytesting -p "${BINTRAY_API_KEY}" \
googlecontainerregistrytesting-docker-test-repo.bintray.io
# Log into Gitlab
- |
docker login -u googlecontainerregistrytesting -p "${GCRT_PASSWORD}" \
registry.gitlab.com
addons:
apt:
sources:
- sourceline: 'deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8'
key_url: 'https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg'
packages:
- bazel
script:
- bazel clean && bazel build //...
# Run outside of the sandbox to get access to Docker credentials registered above.
- bazel clean && bazel test --test_output=errors --strategy=TestRunner=standalone //...