Browse Source

Added runtime versions and archs to Travis CI build

Ryan Armstrong 4 years ago
parent
commit
e7ba9e9e51
3 changed files with 22 additions and 9 deletions
  1. 9 2
      .travis.yml
  2. 11 7
      Makefile
  3. 2 0
      README.md

+ 9 - 2
.travis.yml

@@ -1,8 +1,15 @@
 language: go
 
 go:
-    - 1.5.1
+#  - 1.4.3 # https://github.com/cavaliercoder/grab/issues/7
+  - 1.5.4
+  - 1.6.2
+  - tip
 
-install: make deps
+install: make test-deps
 
 script: make test
+
+env: 
+  - GOARCH=amd64
+  - GOARCH=386

+ 11 - 7
Makefile

@@ -1,16 +1,15 @@
 GO = go
+GOGET = $(GO) get -u
 
 all: test lint
 
-deps:
-	$(GO) get -u github.com/djherbis/times
-	$(GO) get -u github.com/golang/lint/golint
-	$(GO) get -u github.com/fzipp/gocyclo
-	$(GO) get -u github.com/client9/misspell/cmd/misspell
-
 test:
 	$(GO) test -v -cover
 
+test-deps:
+	$(GOGET) golang.org/x/tools/cmd/cover
+	$(GOGET) github.com/djherbis/times
+
 lint:
 	gofmt -l -e -s . || :
 	go vet . || :
@@ -18,4 +17,9 @@ lint:
 	gocyclo -over 15 . || :
 	misspell ./* || :
 
-.PHONY: all deps test lint
+lint-deps:	
+	$(GOGET) github.com/golang/lint/golint
+	$(GOGET) github.com/fzipp/gocyclo
+	$(GOGET) github.com/client9/misspell/cmd/misspell
+
+.PHONY: all deps test test-deps lint lint-deps

+ 2 - 0
README.md

@@ -19,6 +19,8 @@ rad features:
 For a full walkthrough, see:
 http://cavaliercoder.com/blog/downloading-large-files-in-go.html
 
+Requires Go v1.4+
+
 
 ## Example