Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to CircleCI #188

Merged
merged 55 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2ca267d
Update travis to latest golang versions
emirpasic Apr 5, 2022
e95c279
Add .circleci/config.yml
emirpasic Apr 5, 2022
a6a23a9
Switching to CircleCI
emirpasic Apr 5, 2022
1ecec7b
Switching to CircleCI
emirpasic Apr 5, 2022
bf2f98b
Switching to CircleCI
emirpasic Apr 6, 2022
bf2ab81
Switching to CircleCI
emirpasic Apr 6, 2022
7168f7a
Switching to CircleCI
emirpasic Apr 6, 2022
bc06b65
Switching to CircleCI
emirpasic Apr 6, 2022
bd36990
Switching to CircleCI
emirpasic Apr 6, 2022
ff2f625
Switching to CircleCI
emirpasic Apr 6, 2022
85aee54
Switching to CircleCI
emirpasic Apr 6, 2022
550e1ae
Switching to CircleCI
emirpasic Apr 6, 2022
3b09037
Switching to CircleCI
emirpasic Apr 6, 2022
6506305
Switching to CircleCI
emirpasic Apr 6, 2022
522b951
Switching to CircleCI
emirpasic Apr 6, 2022
a0035b3
Switching to CircleCI
emirpasic Apr 6, 2022
97f1ce0
Switching to CircleCI
emirpasic Apr 6, 2022
d732d41
Switching to CircleCI
emirpasic Apr 6, 2022
c829b32
Switching to CircleCI
emirpasic Apr 6, 2022
2cdadcd
Switching to CircleCI
emirpasic Apr 6, 2022
662feda
Switching to CircleCI
emirpasic Apr 6, 2022
bba4a1d
Switching to CircleCI
emirpasic Apr 6, 2022
d54e8a4
Switching to CircleCI
emirpasic Apr 6, 2022
62c8f37
Switching to CircleCI
emirpasic Apr 6, 2022
bb331d1
Switching to CircleCI
emirpasic Apr 6, 2022
f9ca9ba
Switching to CircleCI
emirpasic Apr 6, 2022
2d480b3
Switching to CircleCI
emirpasic Apr 6, 2022
ed2e66b
Switching to CircleCI
emirpasic Apr 6, 2022
3e18023
Switching to CircleCI
emirpasic Apr 6, 2022
27e9ad8
Switching to CircleCI
emirpasic Apr 6, 2022
eee4c73
Switching to CircleCI
emirpasic Apr 6, 2022
f8d4389
Switching to CircleCI
emirpasic Apr 6, 2022
7478be5
Switching to CircleCI
emirpasic Apr 6, 2022
8c10956
Switching to CircleCI
emirpasic Apr 6, 2022
c91beb0
Switching to CircleCI
emirpasic Apr 6, 2022
68d62ab
Switching to CircleCI
emirpasic Apr 6, 2022
23ff506
Switching to CircleCI
emirpasic Apr 6, 2022
dabe253
Switching to CircleCI
emirpasic Apr 6, 2022
6b76fcb
Switching to CircleCI
emirpasic Apr 6, 2022
371a50d
Switching to CircleCI
emirpasic Apr 6, 2022
31fccff
Switching to CircleCI
emirpasic Apr 6, 2022
10343ee
Switching to CircleCI
emirpasic Apr 6, 2022
f871cf9
Switching to CircleCI
emirpasic Apr 6, 2022
915a2bc
Switching to CircleCI
emirpasic Apr 6, 2022
f602a98
Switching to CircleCI
emirpasic Apr 6, 2022
3a92202
Switching to CircleCI
emirpasic Apr 6, 2022
46fd454
Switching to CircleCI
emirpasic Apr 6, 2022
2d64eb4
Switching to CircleCI
emirpasic Apr 6, 2022
fc28a20
Switching to CircleCI
emirpasic Apr 6, 2022
76d2e78
Switching to CircleCI
emirpasic Apr 6, 2022
c76ef96
Switching to CircleCI
emirpasic Apr 6, 2022
aafef2e
Switching to CircleCI
emirpasic Apr 6, 2022
340b511
Switching to CircleCI
emirpasic Apr 6, 2022
905621d
Switch to CircleCI
emirpasic Apr 6, 2022
c6ea52d
Merge pull request #187 from emirpasic/circleci-project-setup
emirpasic Apr 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
version: 2.1

jobs:
test:
parameters:
version:
type: string
default: latest
docker:
- image: cimg/go:<<parameters.version>>
environment:
TEST_RESULTS: /tmp/test-results
working_directory: ~/gods
steps:
- run:
name: Print Go version (go version)
command: |
go version
- checkout
- run:
name: Run tests
command: |
mkdir -p $TEST_RESULTS
go install gotest.tools/gotestsum@latest
go test -v ./... | go tool test2json > $TEST_RESULTS/test2json-output.json
gotestsum --junitfile $TEST_RESULTS/gotestsum-report.xml
- run:
name: Calculate test coverage
command: |
mkdir -p $TEST_RESULTS
go test -coverprofile=c.out ./... > /dev/null
go tool cover -html=c.out -o coverage.html
mv coverage.html $TEST_RESULTS
- run:
name: Lint (golint)
command: |
go install golang.org/x/lint/golint@latest
golint -set_exit_status ./...
- run:
name: Enforce formatted code (go fmt)
command: |
! go fmt ./... 2>&1 | read
- run:
name: Examine and report suspicious constructs (go vet)
command: |
go vet -v ./...
- run:
name: Calculate cyclomatic complexity (gocyclo)
command: |
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
gocyclo -avg -over 15 ../gods
- run:
name: Check for unchecked errors (errcheck)
command: |
go install github.com/kisielk/errcheck@latest
errcheck ./...
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
- store_test_results:
path: /tmp/test-results

workflows:
test:
jobs:
- test:
matrix:
parameters:
# To test with and without generics (versions prior to 1.18)
version: ["1.18", "1.17"]
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![GoDoc](https://godoc.org/github.com/emirpasic/gods?status.svg)](https://godoc.org/github.com/emirpasic/gods) [![Build Status](https://travis-ci.org/emirpasic/gods.svg)](https://travis-ci.org/emirpasic/gods) [![Go Report Card](https://goreportcard.com/badge/github.com/emirpasic/gods)](https://goreportcard.com/report/github.com/emirpasic/gods) [![PyPI](https://img.shields.io/pypi/l/Django.svg?maxAge=2592000)](https://github.com/emirpasic/gods/blob/master/LICENSE)
[![GoDoc](https://godoc.org/github.com/emirpasic/gods?status.svg)](https://godoc.org/github.com/emirpasic/gods) [![Build Status](https://circleci.com/gh/emirpasic/gods/tree/master.svg?style=shield)](https://circleci.com/gh/emirpasic/gods?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/emirpasic/gods)](https://goreportcard.com/report/github.com/emirpasic/gods) [![PyPI](https://img.shields.io/pypi/l/Django.svg?maxAge=2592000)](https://github.com/emirpasic/gods/blob/master/LICENSE)

# GoDS (Go Data Structures)

Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/emirpasic/gods

go 1.2