Migrate project to GitLab
parent
d864b6bf68
commit
f2a5474ad5
@ -0,0 +1,24 @@
|
||||
image: golang:latest
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
|
||||
before_script:
|
||||
- go get -u github.com/golang/dep/cmd/dep
|
||||
- export GOPATH=$(dirname $CI_PROJECT_DIR)/go
|
||||
- mkdir -p $GOPATH/src
|
||||
- cd $GOPATH/src
|
||||
- ln -s $CI_PROJECT_DIR
|
||||
- cd $CI_PROJECT_NAME
|
||||
- dep ensure -update
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- go test
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- go build
|
@ -1,35 +0,0 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.x
|
||||
- tip
|
||||
|
||||
install: true
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- go: tip
|
||||
fast_finish: true
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
before_script:
|
||||
- GO_FILES=$(find . -iname '*.go' | grep -v /vendor/)
|
||||
- PKGS=$(go list ./... | grep -v /vendor/)
|
||||
# - go get github.com/golang/lint/golint
|
||||
# - go get honnef.co/go/tools/cmd/megacheck
|
||||
|
||||
script:
|
||||
- test -z $(gofmt -s -l $GO_FILES)
|
||||
- go test -v -race $PKGS
|
||||
- go vet $PKGS
|
||||
# - megacheck $PKGS
|
||||
# - golint -set_exit_status $PKGS
|
||||
|
||||
notifications:
|
||||
irc:
|
||||
channels:
|
||||
- "z.1chan.us#anonircd"
|
||||
on_success: change
|
||||
on_failure: always
|
Loading…
Reference in New Issue