Try a different project structure
Some checks failed
the build failed

This commit is contained in:
Tyler 2018-10-14 04:17:04 -04:00
parent 3d3670ac2b
commit 331e7e0296
16 changed files with 9 additions and 31 deletions

View File

@ -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

View File

@ -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=.

View File

@ -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

View File

@ -1,4 +1,4 @@
package simple
package main
import (
"os"

View File

@ -1,4 +1,4 @@
package simple
package main
import (
"strings"

View File

@ -1,4 +1,4 @@
package simple
package main
import (
"net/http"

View File

@ -1,4 +1,4 @@
package simple
package main
import (
"regexp"

View File

@ -1,4 +1,4 @@
package simple
package main
import (
"flag"