parent
3d3670ac2b
commit
331e7e0296
@ -1,5 +1,6 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/gitea.meow.tf/tyler/deb-simple
|
||||
|
||||
pipeline:
|
||||
dependencies:
|
||||
@ -7,7 +8,6 @@ pipeline:
|
||||
commands:
|
||||
- mkdir /go/bin
|
||||
- curl https://glide.sh/get | sh
|
||||
- cd src/gitea.meow.tf/tyler/deb-simple
|
||||
- glide install
|
||||
build-i386:
|
||||
image: golang:latest
|
||||
@ -15,16 +15,16 @@ pipeline:
|
||||
commands:
|
||||
- ls /go/src
|
||||
- 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:
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- 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:
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- 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 (
|
||||
"os"
|
@ -1,4 +1,4 @@
|
||||
package simple
|
||||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
@ -1,4 +1,4 @@
|
||||
package simple
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
@ -1,4 +1,4 @@
|
||||
package simple
|
||||
package main
|
||||
|
||||
import (
|
||||
"regexp"
|
@ -1,4 +1,4 @@
|
||||
package simple
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
Loading…
Reference in New Issue
Block a user