drone build file

This commit is contained in:
Dan Ballard 2018-07-02 13:09:12 -05:00
parent 69c1dc18fb
commit cdb458647f
3 changed files with 51 additions and 4 deletions

46
.drone.yml Normal file
View File

@ -0,0 +1,46 @@
workspace:
base: /go
path: src/openprivacy/libricochet-go
pipeline:
fetch:
image: golang
commands:
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/bin/tor
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/torrc
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/gogs-notify.sh
- chmod a+x tor
- go list ./... | xargs go get
- go get -u github.com/golang/lint/golint
quality:
image: golang
commands:
- go list ./... | xargs go vet
#-set_exit_status too many lint fails for :(
- go list ./... | xargs golint
units-tests:
image: golang
commands:
- sh testing/tests.sh
integ-test:
image: golang
commands:
- ./tor -f ./torrc
- sleep 15
- go test -v openprivacy/libricochet-go/testing
notify-email:
image: drillster/drone-email
host: build.openprivacy.ca
port: 25
skip_verify: true
from: drone@openprivacy.ca
when:
status: [ success, changed, failure ]
notify-gogs:
image: golang
when:
event: pull-request
secrets: [BUILDBOT]
commands:
- echo "Notifying"
- sh gogs-notify.sh

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
go-ricochet-coverage.out
*~
*.out
.idea

View File

@ -130,7 +130,7 @@ func (m *OpenChannel) String() string { return proto.CompactTextString(m) }
func (*OpenChannel) ProtoMessage() {}
var extRange_OpenChannel = []proto.ExtensionRange{
{100, 536870911},
{Start: 100, End: 536870911},
}
func (*OpenChannel) ExtensionRangeArray() []proto.ExtensionRange {
@ -170,7 +170,7 @@ func (m *ChannelResult) String() string { return proto.CompactTextString(m) }
func (*ChannelResult) ProtoMessage() {}
var extRange_ChannelResult = []proto.ExtensionRange{
{100, 536870911},
{Start: 100, End: 536870911},
}
func (*ChannelResult) ExtensionRangeArray() []proto.ExtensionRange {
@ -231,7 +231,7 @@ func (m *EnableFeatures) String() string { return proto.CompactTextString(m) }
func (*EnableFeatures) ProtoMessage() {}
var extRange_EnableFeatures = []proto.ExtensionRange{
{100, 536870911},
{Start: 100, End: 536870911},
}
func (*EnableFeatures) ExtensionRangeArray() []proto.ExtensionRange {
@ -262,7 +262,7 @@ func (m *FeaturesEnabled) String() string { return proto.CompactTextString(m) }
func (*FeaturesEnabled) ProtoMessage() {}
var extRange_FeaturesEnabled = []proto.ExtensionRange{
{100, 536870911},
{Start: 100, End: 536870911},
}
func (*FeaturesEnabled) ExtensionRangeArray() []proto.ExtensionRange {