Skip to content

Commit 5cc3100

Browse files
committed
Add Makefile and travis.yml
Signed-off-by: Javi Fontan <[email protected]>
1 parent 057fd4d commit 5cc3100

File tree

3 files changed

+19
-28
lines changed

3 files changed

+19
-28
lines changed

.travis.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
language: go
2-
sudo: false
2+
33
go:
44
- 1.9
55
- tip
6-
go_import_path: gopkg.in/sqle/gitquery.v0
6+
77
matrix:
88
fast_finish: true
99
allow_failures:
1010
- go: tip
11+
1112
install:
12-
- go get -u github.com/golang/dep/cmd/dep
13-
- dep ensure -v
14-
- go build -ldflags="-X main.version=$TRAVIS_TAG" -v -o gitquery ./cmd/...
13+
- make dependencies
14+
1515
script:
16-
- sh ./go.test.sh
17-
after_success:
18-
- bash <(curl -s https://codecov.io/bash)
19-
deploy:
20-
provider: releases
21-
api_key:
22-
secure: YUASK1+EaHQo1WPIDfSQZLynvPh/bFPVV8WNrbqWkqox+Y58MLeYCEGnDjP70pVsL5YmjZzeEGv4XRYIl359wqL7YxnB70mJGAmbi8xQ8DS+ecbpJXz+kDES/QqX6BVJYXMWRm2hM/XdyIDvPa5kaVBbeFlO86uizI0OSHE/2O4aticeaRUajTM+Bv7/R2ygVCiB+1gVdGqPmRy2w/bFUOAfR1LTC8TLDQFJUvgjtuJJVKhffKhcqfnibNyBtTEd9nwSuY4MAuva9ghgFvl1B9uJ266ktEDkqAjNX3Cg1UNyAPXs50M61gBUEFV/MAscCHrtHDdtzyrKPaUZ224TcTVjgEZiOG8Zus+0wvwyhf7wyxSHx73ZXGedu54/oazLqFudj9u2AM+qMrXoRtFcygtSXBdG4SaN0OL/EUXnxiJLPbfFT/oM7VpdEscZn8okMo7RtbGxszrJQOIvrcNd16IZHK10S/nVnGNHNNNuArwf5B15DK49gveB1+sv/8FkoTx3LXJFHHiA1C8l5sH+Of6v/YKa5Zspkub7wkKrE3fQ/zPc3D0AVvrMt/k6S0LBtQR6eJqqtasVLlmtrRujyOxWLWO7fwmRTsI6qT1O4fspGBaONg8cr9xuwsOGBcGIEaPCKv3RZrY8+hx2J7cLzV0qjaJtmucamnenxic7a6o=
23-
file: gitquery
24-
skip_cleanup: true
25-
on:
26-
tags: true
16+
- make test-coverage

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Package configuration
2+
PROJECT = gitquery
3+
4+
# Including ci Makefile
5+
CI_REPOSITORY ?= https://github.com/src-d/ci.git
6+
CI_PATH ?= $(shell pwd)/.ci
7+
CI_VERSION ?= v1
8+
9+
MAKEFILE := $(CI_PATH)/Makefile.main
10+
$(MAKEFILE):
11+
git clone --quiet --branch $(CI_VERSION) --depth 1 $(CI_REPOSITORY) $(CI_PATH);
12+
13+
-include $(MAKEFILE)

go.test.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)