forked from k8snetworkplumbingwg/kubemacpool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (25 loc) · 846 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
language: go
sudo: required
dist: trusty
go: "1.11"
services:
- docker
install: true
script:
- sudo cp ./cluster/dind-cluster/kubectl /usr/bin/kubectl
- make docker-generate
- if [[ -n "$(git status --porcelain)" ]] ; then echo "It seems like you need to run make. Please run it and commit the changes"; git status --porcelain; false; fi
- make docker-test
- make deploy-test-cluster
- KUBECONFIG="`pwd`/cluster/dind-cluster/config" go test -timeout 30m -v -race ./tests/...
deploy:
- provider: script
script: docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" quay.io && make docker-build docker-push
skip_cleanup: true
on:
branch: master
- provider: script
script: docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" quay.io && make docker-build docker-push IMAGE_TAG=$TRAVIS_TAG
skip_cleanup: true
on:
tags: true