-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
45 lines (41 loc) · 2.99 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
language: go
sudo: required
services:
- docker
notifications:
email:
on_success: never
on_failure: change
before_install:
# Download and install dep
- curl -sI https://github.com/golang/dep/releases/latest | grep -Fi Location | tr -d '\r' | sed "s/tag/download/g" | awk -F " " '{ print $2 "/dep-linux-amd64"}' | wget --output-document=$GOPATH/bin/dep -i -
- chmod +x $GOPATH/bin/dep
# Install linters and misspell
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install
# Install terraform tooling for linting terraform
- wget https://releases.hashicorp.com/terraform/${tf_version}/terraform_${tf_version}_linux_amd64.zip -O /tmp/terraform.zip
- sudo unzip -d /usr/local/bin/ /tmp/terraform.zip
- curl -L -o - https://github.com/sl1pm4t/terraform-provider-kubernetes/releases/download/v1.0.7-custom/terraform-provider-kubernetes_linux-amd64.gz | gunzip > terraform-provider-kubernetes
- chmod +x terraform-provider-kubernetes
# Generate a SSH key for use by terraform
- ssh-keygen -b 2048 -t rsa -f ~/.ssh/id_rsa -q -N ""
# Install tooling GRPC files
- go get -u google.golang.org/grpc
- chmod +x ./tools/install-protoc.sh && sudo ./tools/install-protoc.sh $PROTOC_VERSION
- go get -u github.com/golang/protobuf/protoc-gen-go
# Install ffmpeg
- sudo add-apt-repository -y ppa:mc3man/trusty-media
- sudo apt-get update
- sudo apt-get install -y ffmpeg
script:
- make check-tf
- make
- if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "master" ]; then chmod +x ./build/pushimages.sh && sudo ./build/pushimages.sh; fi
env:
matrix:
- tf_version=0.11.7
global:
- PROTOC_VERSION=3.6.0
- secure: EhUZbxt13FxrP8JEuIyHv15GCoflmXPZJv877+PBjnkV7jY8SE8w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