Try a different project structure
the build failed
Details
the build failed
Details
This commit is contained in:
parent
3d3670ac2b
commit
331e7e0296
|
@ -1,5 +1,6 @@
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
|
path: src/gitea.meow.tf/tyler/deb-simple
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -7,7 +8,6 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- mkdir /go/bin
|
- mkdir /go/bin
|
||||||
- curl https://glide.sh/get | sh
|
- curl https://glide.sh/get | sh
|
||||||
- cd src/gitea.meow.tf/tyler/deb-simple
|
|
||||||
- glide install
|
- glide install
|
||||||
build-i386:
|
build-i386:
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
|
@ -15,16 +15,16 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- ls /go/src
|
- ls /go/src
|
||||||
- mkdir -p build/i386
|
- mkdir -p build/i386
|
||||||
- GOOS=linux GOARCH=386 go build -o build/i386/deb-simple
|
- GOOS=linux GOARCH=386 go build -o build/i386/deb-simple gitea.meow.tf/tyler/deb-simple/main
|
||||||
build-amd64:
|
build-amd64:
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
group: build
|
group: build
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p build/amd64
|
- mkdir -p build/amd64
|
||||||
- go build -o build/amd64/deb-simple
|
- go build -o build/amd64/deb-simple gitea.meow.tf/tyler/deb-simple/main
|
||||||
build-armv7:
|
build-armv7:
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
group: build
|
group: build
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p build/armv7
|
- mkdir -p build/armv7
|
||||||
- GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple
|
- GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple gitea.meow.tf/tyler/deb-simple/main
|
12
.travis.yml
12
.travis.yml
|
@ -1,12 +0,0 @@
|
||||||
language: go
|
|
||||||
|
|
||||||
go:
|
|
||||||
- 1.5
|
|
||||||
before_install:
|
|
||||||
- go get github.com/blakesmith/ar
|
|
||||||
- go get github.com/axw/gocov/gocov
|
|
||||||
- go get github.com/mattn/goveralls
|
|
||||||
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
|
|
||||||
script:
|
|
||||||
- $HOME/gopath/bin/goveralls -service=travis-ci
|
|
||||||
- go test -run=XXX -bench=.
|
|
10
Makefile
10
Makefile
|
@ -1,10 +0,0 @@
|
||||||
all:
|
|
||||||
go build -o deb-simple .
|
|
||||||
|
|
||||||
install:
|
|
||||||
mkdir -p $(DESTDIR)/usr/bin
|
|
||||||
cp deb-simple $(DESTDIR)/usr/bin
|
|
||||||
chmod 755 $(DESTDIR)/usr/bin/deb-simple
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f deb-simple
|
|
|
@ -1,4 +1,4 @@
|
||||||
package simple
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -1,4 +1,4 @@
|
||||||
package simple
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package simple
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
|
@ -1,4 +1,4 @@
|
||||||
package simple
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"regexp"
|
"regexp"
|
|
@ -1,4 +1,4 @@
|
||||||
package simple
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
Loading…
Reference in New Issue