forked from nginxinc/kubernetes-ingress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
22 lines (22 loc) · 1.09 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
language: go
sudo: required
services:
- docker
go:
- 1.9
script:
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
export VERSION=pr-${TRAVIS_PULL_REQUEST}-${TRAVIS_BUILD_NUMBER};
else export VERSION=${TRAVIS_COMMIT} ; fi
- echo "Building ingress controller VERSION:${VERSION}"
- if [ "${TRAVIS_PULL_REQUEST_SLUG}" == "nginxinc/kubernetes-ingress" ] || [ "${TRAVIS_PULL_REQUEST_SLUG}" == "" ]; then
cd nginx-controller && make clean &&
make PREFIX=gcr.io/nginx-ic-dev/nginx-ingress VERSION=${VERSION} BUILD_IN_CONTAINER=0 PUSH_TO_GCR=1 ;
else echo "Not building PR from forks. Only testing" && cd nginx-controller && make test BUILD_IN_CONTAINER=0 ; fi
before_install:
- echo "Repo Slug:${TRAVIS_PULL_REQUEST_SLUG}"
- if [ "${TRAVIS_PULL_REQUEST_SLUG}" == "nginxinc/kubernetes-ingress" ] || [ "${TRAVIS_PULL_REQUEST_SLUG}" == "" ]; then
openssl aes-256-cbc -K $encrypted_6e02d569a8a7_key -iv $encrypted_6e02d569a8a7_iv
-in client-secret.json.enc -out client-secret.json -d &&
gcloud auth activate-service-account --key-file client-secret.json &&
gcloud config set project nginx-ic-dev ; fi