Add version into binary and fix .travis.yml to run forked repo.

This changes introduce goreleaser, which does cross-compile and
package, as well as add version into go code. This change also
changes .travis.yml to allow to other users' forked repo.
This commit is contained in:
Tomofumi Hayashi
2018-12-06 12:52:30 +09:00
committed by Tomofumi Hayashi
parent 344e74f971
commit 6a46d54161
5 changed files with 87 additions and 19 deletions

View File

@@ -28,7 +28,7 @@ import (
"github.com/containernetworking/cni/pkg/skel"
cnitypes "github.com/containernetworking/cni/pkg/types"
"github.com/containernetworking/cni/pkg/types/020"
"github.com/containernetworking/cni/pkg/version"
cniversion "github.com/containernetworking/cni/pkg/version"
"github.com/containernetworking/plugins/pkg/ns"
"github.com/containernetworking/plugins/pkg/testutils"
@@ -52,7 +52,7 @@ type fakePlugin struct {
}
type fakeExec struct {
version.PluginDecoder
cniversion.PluginDecoder
addIndex int
delIndex int