-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (31 loc) · 835 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
40
language: go
go:
- 1.12.x
- 1.13.x
os: linux
dist: xenial
sudo: false
branches:
only:
- master
install:
- go get -u github.com/golang/protobuf/protoc-gen-go
- curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.9.1/protoc-3.9.1-linux-x86_64.zip -o /tmp/protoc.zip
- unzip /tmp/protoc.zip -d "$HOME"/protoc
- mkdir -p "$HOME"/src && ln -s "$HOME"/protoc "$HOME"/src/protobuf
- ./scripts/run-datastore-emulator.sh
env:
- PATH=$HOME/protoc/bin:$PATH DATASTORE_EMULATOR_HOST=127.0.0.1:8081 GO111MODULE="on"
script:
- echo "Generate Protobuf's"
- make protobuf
- echo "Unit Tests"
- make unit-tests
- echo "Integration Tests"
- make integration-tests
notifications:
email:
on_success: change
on_failure: always
after_success:
- bash <(curl -s https://codecov.io/bash)