Browse Source

Basic circle.yml, respecting Glide etc.

TODO: caching the vendor dir
Peter Bourgon 3 years ago
parent
commit
4420e96653
2 changed files with 29 additions and 2 deletions
  1. 24
    0
      circle.yml
  2. 5
    2
      lint

+ 24
- 0
circle.yml View File

@@ -0,0 +1,24 @@
1
+machine:
2
+  environment:
3
+    PATH: "/usr/local/go/bin:${HOME}/bin:${PATH}"
4
+    GOROOT: ""
5
+    GOPATH: "${HOME}"
6
+    GO15VENDOREXPERIMENT: "1"
7
+
8
+checkout:
9
+  post:
10
+    - mkdir -p ${GOPATH}/src/github.com/weaveworks
11
+    - mv ${HOME}/fluxy ${GOPATH}/src/github.com/weaveworks
12
+    - ln -s ${GOPATH}/src/github.com/weaveworks/fluxy ${HOME}/fluxy # Circle needs this to be here, apparently
13
+    - cd ${GOPATH}/src/github.com/weaveworks/fluxy
14
+
15
+dependencies:
16
+  override: 
17
+    - go get github.com/Masterminds/glide
18
+    - glide install
19
+
20
+test:
21
+  override:
22
+    - go build -v $(glide novendor)
23
+    - go test -v -race $(glide novendor)
24
+

+ 5
- 2
lint View File

@@ -11,11 +11,14 @@ then
11 11
 fi
12 12
 
13 13
 gometalinter \
14
-	--exclude='error return value not checked.*(Close|Log|Print).*\(errcheck\)$' \
14
+	--vendor \
15
+	--exclude='error return value not checked.*(Close|Log|Print|Encode).*\(errcheck\)$' \
15 16
 	--exclude='.*_test\.go:.*error return value not checked.*\(errcheck\)$' \
16 17
 	--exclude='duplicate of.*_test.go.*\(dupl\)$' \
17 18
 	--disable=aligncheck \
18 19
 	--disable=gotype \
20
+	--disable=dupl \
19 21
 	--cyclo-over=20 \
20 22
 	--tests \
21
-	--deadline=10s
23
+	--deadline=60s \
24
+	$*

Loading…
Cancel
Save