Fix up build for recent versions of Go

Forbid broken goxc tasks.
This commit is contained in:
Andrey Smirnov
2016-11-28 16:37:47 +03:00
parent d008cabf07
commit d100033b46
5 changed files with 16 additions and 10 deletions

8
.gitignore vendored
View File

@@ -27,8 +27,12 @@ coverage*.out
*.pyc
_vendor/
vendor/
xc-out/
root/
gen
man/aptly.1.html
man/aptly.1.ronn
man/aptly.1.ronn
.goxc.local.json

View File

@@ -2,10 +2,12 @@
"AppName": "aptly",
"ArtifactsDest": "xc-out/",
"TasksExclude": [
"rmbin"
"rmbin",
"go-test",
"go-vet"
],
"TasksAppend": [
"bintray"
"bintray"
],
"TaskSettings": {
"deb": {
@@ -33,6 +35,6 @@
},
"Arch": "386 amd64",
"Os": "linux darwin freebsd",
"MainDirsExclude": "man,_vendor",
"MainDirsExclude": "man,vendor",
"ConfigVersion": "0.9"
}
}

View File

@@ -3,8 +3,8 @@ sudo: false
language: go
go:
- 1.5
- 1.6
- 1.7
- tip
addons:

View File

@@ -1,7 +1,7 @@
GOVERSION=$(shell go version | awk '{print $$3;}')
PACKAGES=context database deb files http query swift s3 utils
ALL_PACKAGES=api aptly context cmd console database deb files http query swift s3 utils
BINPATH=$(abspath ./_vendor/bin)
BINPATH=$(abspath ./vendor/bin)
GOM_ENVIRONMENT=-test
PYTHON?=python
@@ -65,7 +65,7 @@ src-package:
cd aptly-$(VERSION)/src/github.com/smira/ && git clone https://github.com/smira/aptly && cd aptly && git checkout v$(VERSION)
cd aptly-$(VERSION)/src/github.com/smira/aptly && gom -production install
cd aptly-$(VERSION)/src/github.com/smira/aptly && find . \( -name .git -o -name .bzr -o -name .hg \) -print | xargs rm -rf
rm -rf aptly-$(VERSION)/src/github.com/smira/aptly/_vendor/{pkg,bin}
rm -rf aptly-$(VERSION)/src/github.com/smira/aptly/vendor/{pkg,bin}
mkdir -p aptly-$(VERSION)/bash_completion.d
(cd aptly-$(VERSION)/bash_completion.d && wget https://raw.github.com/aptly-dev/aptly-bash-completion/$(VERSION)/aptly)
tar cyf aptly-$(VERSION)-src.tar.bz2 aptly-$(VERSION)

View File

@@ -64,7 +64,7 @@ If you would like to use nightly builds (unstable), please use following reposit
Binary executables (depends almost only on libc) are available for download from `Bintray <http://dl.bintray.com/smira/aptly/>`_.
If you have Go environment set up, you can build aptly from source by running (go 1.4+ required)::
If you have Go environment set up, you can build aptly from source by running (go 1.6+ required)::
go get -u github.com/mattn/gom
mkdir -p $GOPATH/src/github.com/smira/aptly