]> source.dussan.org Git - gitea.git/commitdiff
Restore make test target (#3139)
authorEthan Koenig <ethantkoenig@gmail.com>
Mon, 11 Dec 2017 02:31:07 +0000 (18:31 -0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Mon, 11 Dec 2017 02:31:07 +0000 (10:31 +0800)
* Restore make test target

* make build -> go build

.drone.yml
Makefile

index 1f4d2a1faa2dc2a532479b375406147a0808be3b..e9e30d32304c5747dbdb6083ab782ea5b1628474 100644 (file)
@@ -73,6 +73,16 @@ pipeline:
     when:
       event: [ push, tag, pull_request ]
 
+  build-without-gcc:
+    image: webhippie/golang:edge
+    pull: true
+    environment:
+      GOPATH: /srv/app
+    commands:
+      - go build # test if build succeeds without the sqlite tag
+    when:
+      event: [ push, tag, pull_request ]
+
   test:
     image: webhippie/golang:edge
     pull: true
index ebafa95c2a576eef7efac15342eb34d7df36683d..d7ddd197b484b924b04005650e59a919b769ca81 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -131,7 +131,6 @@ fmt-check:
 
 .PHONY: test
 test:
-       $(GO) build # test if go build succeed without sqlite support
        $(GO) test -tags=sqlite $(PACKAGES)
 
 .PHONY: coverage