forked from kubernetes-sigs/aws-load-balancer-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.12 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
language: go
go_import_path: github.com/kubernetes-sigs/aws-alb-ingress-controller
sudo: required
env:
global:
- HELM_VERSION=v2.5.0
go:
- master
services:
- docker
before_install:
- go get github.com/mattn/goveralls
- curl -L https://kubernetes-helm.storage.googleapis.com/helm-$HELM_VERSION-linux-amd64.tar.gz | tar -xz -C /tmp
- mv /tmp/linux-amd64/helm /tmp
- /tmp/helm init -c
notifications:
on_success: never
on_failure: never
script:
- go test -covermode=count -coverprofile=profile.cov ./...
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
- make server
after_success:
- export COMMIT=`echo $TRAVIS_COMMIT | head -c 7`
- docker login -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
- export REPO=quay.io/coreos/alb-ingress-controller
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build --pull -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker push $REPO
- /tmp/helm lint --strict alb-ingress-controller-helm/
- if [ "$TRAVIS_BRANCH" = "master" ]; then ./helm_push.sh; fi