Browse Source

Only builds the binary stuff under master branch CI.

pull/2437/head
James Phillips 8 years ago
parent
commit
5a06d5eefc
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
  1. 3
      .travis.yml
  2. 12
      GNUmakefile

3
.travis.yml

@ -7,8 +7,7 @@ branches:
only:
- master
install: make
script:
- make test
- make ci
sudo: false

12
GNUmakefile

@ -10,7 +10,15 @@ VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \
VERSION?=$(shell awk -F\" '/^const Version/ { print $$2; exit }' version.go)
# all builds binaries for all targets
all: tools
all: bin
ci:
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then \
$(MAKE) bin ;\
fi
@$(MAKE) test
bin: tools
@mkdir -p bin/
@sh -c "'$(CURDIR)/scripts/build.sh'"
@ -61,4 +69,4 @@ static-assets:
tools:
go get -u -v $(GOTOOLS)
.PHONY: all bin dev dist cov test cover format vet static-assets tools
.PHONY: all ci bin dev dist cov test cover format vet static-assets tools

Loading…
Cancel
Save