forked from dtan4/k8sec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 843 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
41
42
43
44
sudo: required
services:
- docker
branches:
only:
- master
language: go
cache:
directories:
- vendor
go:
- '1.10.3'
before_install:
- sudo add-apt-repository ppa:masterminds/glide -y
- sudo apt-get update -q
- sudo apt-get install glide -y
- mkdir -p $GOPATH/bin
install:
- make deps
script:
- make ci-test
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- make cross-build
- make dist
deploy:
- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file_glob: true
file: 'dist/*.{tar.gz,zip}'
on:
tags: true
- provider: script
skip_cleanup: true
script: make ci-docker-release
on:
branch: master
- provider: script
skip_cleanup: true
script: DOCKER_IMAGE_TAG=$TRAVIS_TAG make ci-docker-release
on:
tags: true