-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
33 lines (28 loc) · 840 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
language: go
go:
- '1.13'
services:
- docker
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libvirt-dev rpm
install:
- "go get -d -v ./..."
#- "go get github.com/tools/godep"
#- "(cd cmd/kvmprofiler/ ; godep restore)"
# - "(cd cmd/kvmtop/ ; godep restore)"
- "go install ./..."
- "mkdir -p dist/linux_amd64 ; cp $GOPATH/bin/kvm* ./dist/linux_amd64/"
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
- provider: script
skip_cleanup: true
script: docker build --no-cache -t cha87de/kvmtop:master . ; docker push cha87de/kvmtop:master
on:
branch: master
- provider: script
script: rm -rf dist/linux_amd64; curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux