From cdb458647ff1e2584d354bac81be738e892bbce3 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Mon, 2 Jul 2018 13:09:12 -0500 Subject: [PATCH] drone build file --- .drone.yml | 46 +++++++++++++++++++++++++++++++++ .gitignore | 1 + wire/control/control_message.go | 8 +++--- 3 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d81dab5 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 52c205c..14cbaff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ go-ricochet-coverage.out *~ *.out +.idea diff --git a/wire/control/control_message.go b/wire/control/control_message.go index 09e99b4..c3991cd 100644 --- a/wire/control/control_message.go +++ b/wire/control/control_message.go @@ -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 {