forked from noobaa/noobaa-mixins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (27 loc) · 915 Bytes
/
.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
---
sudo: true
addons:
apt:
packages:
- python
- realpath
language: go
go:
# Kubernetes minimum_go_version can be found in this file:
# https://github.com/kubernetes/kubernetes/blob/master/hack/lib/golang.sh
- stable
install:
- go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
- go get github.com/prometheus/prometheus/cmd/promtool
- git clone https://github.com/google/jsonnet ${TRAVIS_HOME}/jsonnet
- make -C ${TRAVIS_HOME}/jsonnet CC=clang CXX=clang++
- cp ${TRAVIS_HOME}/jsonnet/jsonnet ${TRAVIS_HOME}/gopath/bin
- cp ${TRAVIS_HOME}/jsonnet/jsonnetfmt ${TRAVIS_HOME}/gopath/bin
- jb install
script:
- set -o pipefail &&
find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print |
while read f; do
jsonnetfmt -n 2 --max-blank-lines 2 --string-style s --comment-style s "$f" | diff -u "$f" -;
done
- make all