add CircleCI config
This commit is contained in:
89
.circleci/config.yml
Normal file
89
.circleci/config.yml
Normal file
@@ -0,0 +1,89 @@
|
||||
version: 2.1
|
||||
|
||||
orbs:
|
||||
win: circleci/windows@1.0.0
|
||||
|
||||
workflows:
|
||||
workflow:
|
||||
jobs:
|
||||
- go-test:
|
||||
name: Go 1.14
|
||||
docker-image: circleci/golang:1.14
|
||||
- go-test:
|
||||
name: Go 1.13
|
||||
docker-image: circleci/golang:1.13
|
||||
- go-test:
|
||||
name: Go 1.12
|
||||
docker-image: circleci/golang:1.12
|
||||
- go-test:
|
||||
name: Go 1.11
|
||||
docker-image: circleci/golang:1.11
|
||||
- go-test:
|
||||
name: Go 1.10
|
||||
docker-image: circleci/golang:1.10
|
||||
- go-test:
|
||||
name: Go 1.9
|
||||
docker-image: circleci/golang:1.9
|
||||
- go-test:
|
||||
name: Go 1.8
|
||||
docker-image: circleci/golang:1.8
|
||||
- go-test-windows:
|
||||
name: Windows
|
||||
|
||||
jobs:
|
||||
go-test:
|
||||
parameters:
|
||||
docker-image:
|
||||
type: string
|
||||
|
||||
docker:
|
||||
- image: <<parameters.docker-image>>
|
||||
environment:
|
||||
CIRCLE_TEST_REPORTS: /tmp/circle-reports
|
||||
CIRCLE_ARTIFACTS: /tmp/circle-artifacts
|
||||
COMMON_GO_PACKAGES: >
|
||||
github.com/jstemmer/go-junit-report
|
||||
|
||||
working_directory: /go/src/github.com/launchdarkly/go-test-helpers
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
- run: go get -u $COMMON_GO_PACKAGES
|
||||
|
||||
- run:
|
||||
name: Run tests
|
||||
command: |
|
||||
mkdir -p $CIRCLE_TEST_REPORTS
|
||||
mkdir -p $CIRCLE_ARTIFACTS
|
||||
trap "go-junit-report < $CIRCLE_ARTIFACTS/report.txt > $CIRCLE_TEST_REPORTS/junit.xml" EXIT
|
||||
go test -v -race | tee $CIRCLE_ARTIFACTS/report.txt
|
||||
|
||||
- store_test_results:
|
||||
path: /tmp/circle-reports
|
||||
|
||||
- store_artifacts:
|
||||
path: /tmp/circle-artifacts
|
||||
|
||||
go-test-windows:
|
||||
executor:
|
||||
name: win/vs2019
|
||||
shell: powershell.exe
|
||||
|
||||
environment:
|
||||
GOPATH: C:\Users\VssAdministrator\go
|
||||
PACKAGE_PATH: github.com/launchdarkly/go-test-helpers
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
- run: go version
|
||||
- run:
|
||||
name: move source
|
||||
command: |
|
||||
go env GOPATH
|
||||
mkdir ${env:GOPATH}\src\${env:PACKAGE_PATH}
|
||||
mv * ${env:GOPATH}\src\${env:PACKAGE_PATH}
|
||||
- run:
|
||||
name: build and test
|
||||
command: |
|
||||
cd ${env:GOPATH}\src\${env:PACKAGE_PATH}
|
||||
go test -v -race ./...
|
@@ -1,7 +1,7 @@
|
||||
# go-ntlmssp
|
||||
Golang package that provides NTLM/Negotiate authentication over HTTP
|
||||
|
||||
[](https://godoc.org/github.com/Azure/go-ntlmssp) [](https://travis-ci.org/Azure/go-ntlmssp)
|
||||
[](https://godoc.org/github.com/launchdarkly/go-ntlmssp) [](https://circleci.com/gh/launchdarkly/go-ntlmssp)
|
||||
|
||||
This is a fork of [github.com/Azure/go-ntlmssp](https://github.com/Azure/go-ntlmssp), with minor changes for use in the [LaunchDarkly Go SDK](https://github.com/launchdarkly/go-server-sdk).
|
||||
|
||||
|
Reference in New Issue
Block a user