-
Notifications
You must be signed in to change notification settings - Fork 651
/
.travis.yml
47 lines (46 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
sudo: true
dist: trusty
git:
depth: 3
language: go
go:
- 1.11.x # need for App Engine
env:
- BAZEL=0.18.1
before_install:
- |
wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL}/bazel-${BAZEL}-installer-linux-x86_64.sh"
chmod +x install.sh
./install.sh --user
rm -f install.sh
install:
- go get golang.org/x/lint/golint
# Install protobuf dependencies
- go get -u github.com/golang/protobuf/protoc-gen-go
- curl -OL https://github.com/google/protobuf/releases/download/v3.7.1/protoc-3.7.1-linux-x86_64.zip
- sudo unzip -o protoc-3.7.1-linux-x86_64.zip -d /usr/local bin/protoc
- sudo unzip -o protoc-3.7.1-linux-x86_64.zip -d /usr/local include/*
- rm -f protoc-3.7.1-linux-x86_64.zip
# Dynamically get rest of Golang-specific dependencies
- go get -t -d ./claat/...
script:
- make -C claat test lint
- bash codelab-elements/tools/ci-presubmit.sh
before_deploy:
- make -C claat release -j
deploy:
provider: releases
api_key:
secure: qvNA0W7KEKGF4s+FtjB0UeYSc8El8Y7Y3I8J+PzKAbR2HHXTq06OtH1pd2cS6k3ovh5tXAyos0FrFqr7XHohuDmM/CI0/f7PXhP1u7cJjnnvWnOJyYgvOSWjJg0sFlwdnxJ+6yaNlwfIkVfTG9COm7jovBikUn5YPfD8k0cxyoTAWSSY9bEwvAfH4FO08QVvdpIyLpFdvVqei4YXFEB74EaaAK7uqMOGOtB0NDsI9FzfZZjHvL2JWk6BwtQOMxXliHiM+FxaPN3Uq1QiKnd0nNY/47naijTx74neSbz3+R4XsOYwxzKvfEV8bbBmMlBfjRPpy0U/r7ywILykt5fHKqodDgmVUbItTyTD9CUUYbCCRvaXfaldmIC9jMBzxWRakDladJemmIYGC4CQNXFvKz8NW2NMc0waSgqv/d+j+3u0zGQ1iJ199lRyXEz5E2VoUXPSvaxub8Sya83uXTxD6dSdWbePKLpXq9WTg6P0Qj0kccYNcxNJ6s2UeKOD2J7HCtaIOQeLn0IGgj5sjjFuhbjg1eayXUcJP4bAhEFc5Q4rajgbrBtVefX4FdBKacI+YaF/rhjCfQA+653OiyLzVRpri481vT8rmNm9ID8PxDP0NokgFUpZKUx/AItxKVvcDaJmCtTLLt8/K3mA0AjOHhWLxchO/bGeiL7mbuWn3Xg=
on:
repo: googlecodelabs/tools
tags: true
go: 1.11.x # match the above; latest release
skip_cleanup: true
file:
- claat/bin/claat-darwin-amd64
- claat/bin/claat-linux-amd64
- claat/bin/claat-linux-386
- claat/bin/claat-windows-amd64.exe
- claat/bin/claat-windows-386.exe
- claat/bin/sha1sum.txt