Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
e62483a4
Commit
e62483a4
authored
Apr 19, 2018
by
Sander van Harmelen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Travis config
parent
fd2f3081
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
.travis.yml
.travis.yml
+4
-4
projects_test.go
projects_test.go
+2
-0
No files found.
.travis.yml
View file @
e62483a4
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
...
...
projects_test.go
View file @
e62483a4
...
...
@@ -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}]`
)
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment