forked from sbinet/go-gnuplot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (51 loc) · 1.95 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: generic
# Largely borrowed from https://github.com/mbrukman/autogen
# `sudo` is required only because `ed` is not yet a whitelisted package:
# https://github.com/travis-ci/apt-package-whitelist/issues/3681
# Once it is, we can drop this and switch to container-based builds.
sudo: true
matrix:
include:
- os: linux
dist: trusty
# We cannot use the APT addon because neither the repository nor the Bazel
# package are whitelisted. This means we must use `sudo` and hence cannot
# run on the container-based infrastructure.
sudo: required
# This is a necessary setting; without it, `oracle-java8-installer` does
# not install: https://travis-ci.org/mbrukman/autogen/jobs/178708337
language: java
# Using JDK switcher setting in addition to the `oracle-java8-installer`
# package below as follows:
#
# jdk:
# - oraclejdk8
#
# fails with:
#
# $ jdk_switcher use ["oraclejdk8"]
# Sorry, but JDK '[oraclejdk8]' is not known.
# The command "jdk_switcher use ["oraclejdk8"]" failed and exited with 1 during .
#
# even though `oracle-java8-installer` installed successfully moments
# prior: https://travis-ci.org/mbrukman/autogen/jobs/178714227
#
# Using the same setting:
#
# jdk:
# - oraclejdk8
#
# without installing the `oracle-java8-installer` package produces the
# same error: https://travis-ci.org/mbrukman/autogen/jobs/178710299
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:
- oracle-java8-installer
- bazel
script:
- bazel build //...
# Disabled until tests are written
# - bazel test //...