Remove build tag release
This commit is contained in:
parent
de4750b8e0
commit
0cb241b7d3
4 changed files with 3 additions and 8 deletions
5
build.go
5
build.go
|
@ -525,11 +525,6 @@ func main() {
|
|||
|
||||
verbosePrintf("detected Go version %v\n", goVersion)
|
||||
|
||||
if len(buildTags) == 0 {
|
||||
verbosePrintf("adding build-tag release\n")
|
||||
buildTags = []string{"release"}
|
||||
}
|
||||
|
||||
for i := range buildTags {
|
||||
buildTags[i] = strings.TrimSpace(buildTags[i])
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !release
|
||||
// +build debug
|
||||
|
||||
package debug
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build release
|
||||
// +build !debug
|
||||
|
||||
package debug
|
||||
|
||||
|
|
|
@ -315,7 +315,7 @@ func (env *TravisEnvironment) RunTests() error {
|
|||
|
||||
if *runCrossCompile {
|
||||
// compile for all target architectures with tags
|
||||
for _, tags := range []string{"release", "debug"} {
|
||||
for _, tags := range []string{"", "debug"} {
|
||||
err := runWithEnv(env.env, "gox", "-verbose",
|
||||
"-osarch", strings.Join(env.goxOSArch, " "),
|
||||
"-tags", tags,
|
||||
|
|
Loading…
Reference in a new issue