Skip to content

Commit fdce795

Browse files
authored
Merge pull request #2 from launchdarkly/eb/ch78731/module
make this repo a module + add CI build
2 parents 90effd9 + 8ae043f commit fdce795

File tree

4 files changed

+100
-0
lines changed

4 files changed

+100
-0
lines changed

.circleci/config.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
version: 2.1
2+
3+
orbs:
4+
win: circleci/windows@1.0.0
5+
6+
workflows:
7+
workflow:
8+
jobs:
9+
- go-build:
10+
name: Go 1.14
11+
docker-image: circleci/golang:1.14
12+
build-as-module: true
13+
- go-build:
14+
name: Go 1.13
15+
docker-image: circleci/golang:1.13
16+
build-as-module: true
17+
- go-build:
18+
name: Go 1.12
19+
docker-image: circleci/golang:1.12
20+
- go-build:
21+
name: Go 1.11
22+
docker-image: circleci/golang:1.11
23+
- go-build:
24+
name: Go 1.10
25+
docker-image: circleci/golang:1.10
26+
- go-build:
27+
name: Go 1.9
28+
docker-image: circleci/golang:1.9
29+
- go-build:
30+
name: Go 1.8
31+
docker-image: circleci/golang:1.8
32+
- go-build-windows:
33+
name: Windows
34+
35+
jobs:
36+
go-build:
37+
parameters:
38+
docker-image:
39+
type: string
40+
build-as-module:
41+
type: boolean
42+
default: false
43+
44+
docker:
45+
- image: <<parameters.docker-image>>
46+
47+
working_directory: /go/src/github.com/launchdarkly/go-ntlm-proxy-auth
48+
49+
steps:
50+
- checkout
51+
52+
- unless:
53+
condition: <<parameters.build-as-module>>
54+
steps:
55+
- run: go get -t .
56+
57+
- run: go build
58+
59+
go-build-windows:
60+
executor:
61+
name: win/vs2019
62+
shell: powershell.exe
63+
64+
environment:
65+
GOPATH: C:\Users\VssAdministrator\go
66+
PACKAGE_PATH: github.com/launchdarkly/go-ntlm-proxy-auth
67+
68+
steps:
69+
- checkout
70+
- run: go version
71+
- run:
72+
name: move source
73+
command: |
74+
go env GOPATH
75+
mkdir ${env:GOPATH}\src\${env:PACKAGE_PATH}
76+
mv * ${env:GOPATH}\src\${env:PACKAGE_PATH}
77+
- run:
78+
name: build and test
79+
command: |
80+
cd ${env:GOPATH}\src\${env:PACKAGE_PATH}
81+
go get -t .
82+
go test -v -race ./...

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
44
[![GoDoc](https://godoc.org/github.com/launchdarkly/go-ntlm-proxy-auth?status.svg)](https://godoc.org/github.com/launchdarkly/go-ntlm-proxy-auth)
5+
[![Circle CI](https://circleci.com/gh/launchdarkly/go-ntlm-proxy-auth.svg?style=svg)](https://circleci.com/gh/launchdarkly/go-ntlm-proxy-auth)
56

67
With this package, you can connect to http/https servers protected by an NTLM proxy in Golang.
78

go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/launchdarkly/go-ntlm-proxy-auth
2+
3+
go 1.13
4+
5+
require (
6+
github.com/launchdarkly/go-ntlmssp v0.0.0-20190601005913-a22bdd33b2a4
7+
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 // indirect
8+
)

go.sum

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
github.com/launchdarkly/go-ntlmssp v0.0.0-20190601005913-a22bdd33b2a4 h1:r1FdPJK3SrnEKWrE8M1C57lxywsXTOdDTw8+cBaIhTI=
2+
github.com/launchdarkly/go-ntlmssp v0.0.0-20190601005913-a22bdd33b2a4/go.mod h1:rZQicBRNZBfM+eydZ8LNaQ0p9twUfP6T0hUzJFhaxM4=
3+
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
4+
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 h1:vEg9joUBmeBcK9iSJftGNf3coIG4HqZElCPehJsfAYM=
5+
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
6+
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
7+
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
8+
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
9+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

0 commit comments

Comments
 (0)