From 7e4927997ae88bba80a15182f69f22f20fd601db Mon Sep 17 00:00:00 2001 From: ston1th Date: Mon, 24 Dec 2018 17:16:55 +0100 Subject: [PATCH 1/2] sikp tests --- .drone.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5722c4b..94d61aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,16 +3,16 @@ workspace: path: src pipeline: - test_pr: - image: golang:alpine - environment: - - CGO_ENABLED=0 - - GOOS=linux - commands: - - go test -cover db.go - - go test -cover srv.go - when: - event: [ push, pull_request ] + #test_pr: + # image: golang:alpine + # environment: + # - CGO_ENABLED=0 + # - GOOS=linux + # commands: + # - go test -cover db.go + # - go test -cover srv.go + # when: + # event: [ push, pull_request ] build_pr: image: golang:alpine From 5c2e3223bb942719072f946451362abb30e5743b Mon Sep 17 00:00:00 2001 From: ston1th Date: Mon, 24 Dec 2018 17:21:02 +0100 Subject: [PATCH 2/2] verbose build --- .drone.sh | 4 ++-- .drone.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.sh b/.drone.sh index 73556e3..7fcfe66 100755 --- a/.drone.sh +++ b/.drone.sh @@ -1,5 +1,5 @@ #!/bin/sh VERSION=${DRONE_BUILD_NUMBER} -CGO_ENABLED=0 GOOS=linux go build -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go -CGO_ENABLED=0 GOOS=linux go build -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go +CGO_ENABLED=0 GOOS=linux go build -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go +CGO_ENABLED=0 GOOS=linux go build -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go diff --git a/.drone.yml b/.drone.yml index 94d61aa..dc8daff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,7 +18,7 @@ pipeline: image: golang:alpine commands: sh .drone.sh when: - event: [ push, pull_request ] + event: pull_request publish_srv: image: plugins/docker