Commit e62483a4 authored by Sander van Harmelen's avatar Sander van Harmelen

Update Travis config

parent fd2f3081
language: go
go:
- "1.7.x"
- "1.8.x"
- "1.9.x"
- "1.10.x"
- 1.8.x
- 1.9.x
- 1.10.x
- master
stages:
......@@ -17,6 +16,7 @@ jobs:
script:
- go get github.com/golang/lint/golint
- golint
- go vet
- stage: test
script:
- go test -v
......
......@@ -75,6 +75,7 @@ func TestListProjectsUsersByID(t *testing.T) {
defer teardown(server)
mux.HandleFunc("/projects/", func(w http.ResponseWriter, r *http.Request) {
testURL(t, r, "/projects/1/users?page=2&per_page=3&search=query")
testMethod(t, r, "GET")
fmt.Fprint(w, `[{"id":1},{"id":2}]`)
})
......@@ -100,6 +101,7 @@ func TestListProjectsUsersByName(t *testing.T) {
defer teardown(server)
mux.HandleFunc("/projects/", func(w http.ResponseWriter, r *http.Request) {
testURL(t, r, "/projects/namespace%2Fname/users?page=2&per_page=3&search=query")
testMethod(t, r, "GET")
fmt.Fprint(w, `[{"id":1},{"id":2}]`)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment