Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
travis: add before_deploy and deploy steps
Browse files Browse the repository at this point in the history
Travis will release to github if we have a deploy step. This patch
triggers a deployment whenever master is tagged. Prior to doing the
release, the tag message is output to a file so that it can be included
as a release artifact (attachment).

Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
  • Loading branch information
kaccardi committed Jun 14, 2016
1 parent 502703f commit a0c143d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,16 @@ script:

after_success:
- $GOPATH/bin/goveralls -service=travis-ci -coverprofile=/tmp/cover.out

before_deploy:
- cd $GOPATH/src/github.com/01org/ciao
- tag=`git describe --abbrev=0 --tags`
- git show $tag > release.txt

deploy:
provider: releases
api_key: $GH_TOKEN
file: release.txt
skip_cleanup: true
on:
tags: true

0 comments on commit a0c143d

Please sign in to comment.