Skip to content

Commit

Permalink
Merge pull request #17 from smola/ci
Browse files Browse the repository at this point in the history
build: use src-d/ci and deploy artifacts
  • Loading branch information
mcuadros authored Aug 2, 2017
2 parents 3c00b37 + b37da53 commit 1b9a917
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
language: go

go_import_path: gopkg.in/src-d/go-siva.v1

go:
- 1.7
- 1.8
- tip

matrix:
fast_finish: true
allow_failures:
- go: tip

install:
- rm -rf $GOPATH/src/gopkg.in/src-d
- mkdir -p $GOPATH/src/gopkg.in/src-d
- ln -s $PWD $GOPATH/src/gopkg.in/src-d/go-siva.v1
- cd $GOPATH/src/gopkg.in/src-d/go-siva.v1
- go get -v -t ./...
- make dependencies

script:
- make test-coverage

before_deploy:
- make packages

deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: build/*.tar.gz
skip_cleanup: true
on:
tags: true

script:
- go test -v ./...
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Package configuration
PROJECT = siva
COMMANDS = cmd/siva

# Including ci Makefile
MAKEFILE = Makefile.main
CI_REPOSITORY = https://github.com/src-d/ci.git
CI_FOLDER = .ci

$(MAKEFILE):
@git clone --quiet $(CI_REPOSITORY) $(CI_FOLDER); \
cp $(CI_FOLDER)/$(MAKEFILE) .;

-include $(MAKEFILE)

0 comments on commit 1b9a917

Please sign in to comment.