forked from GoogleCloudPlatform/runtimes-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (32 loc) · 877 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
33
34
35
36
37
38
39
sudo: required
dist: trusty
language: java
python:
- "2.7"
language: go
go:
- 1.8.1
go_import_path: github.com/GoogleCloudPlatform/runtimes-common
jdk:
- oraclejdk8
before_install:
- pip install --user --upgrade -r requirements.txt
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'
- debian-sid
packages:
- shellcheck
- bazel
install:
- go get -u github.com/bazelbuild/buildifier/buildifier
script:
- find . -name "*.sh" | grep -v iDiff | xargs shellcheck
- flake8 .
- ./.gofmt.sh
- ./.buildifier.sh
- python -m unittest discover -s reconciletags -p 'reconciletags_test.py'
- bazel clean && bazel build //...
- go test `go list ./... | grep iDiff | grep -v iDiff/vendor`