Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into auth-backend-token-…
Browse files Browse the repository at this point in the history
…entry-period
  • Loading branch information
calvn committed Jun 5, 2020
2 parents f441fab + 190b6d7 commit 5dcfb4c
Show file tree
Hide file tree
Showing 2,475 changed files with 388,222 additions and 210,707 deletions.
143 changes: 95 additions & 48 deletions .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .circleci/config/@config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ executors:
environment:
GO111MODULE: "off"
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_VERSION: 1.13.7 # Pin Go to patch version (ex: 1.2.3)
GO_VERSION: 1.13.8 # Pin Go to patch version (ex: 1.2.3)
GOTESTSUM_VERSION: 0.3.3 # Pin gotestsum to patch version (ex: 1.2.3)
GO_TAGS: ""
working_directory: /go/src/github.com/hashicorp/vault
Expand Down
14 changes: 14 additions & 0 deletions .circleci/config/commands/check-branch-name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: >
Check if branch name starts with ui/ or docs/ and if so, exit.
steps:
- run:
working_directory: ~/
name: Check branch name
command: |
# If the branch being tested starts with ui/ or docs/ we want to exit the job without failing
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* ]] && {
# stop the job from this step
circleci-agent step halt
}
# exit with success either way
exit 0
4 changes: 4 additions & 0 deletions .circleci/config/commands/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ parameters:
extra_flags:
type: string
default: ""
log_dir:
type: string
default: "/tmp/testlogs"
steps:
- run:
name: Run Go tests
Expand Down Expand Up @@ -38,6 +41,7 @@ steps:
VAULT_TOKEN= \
VAULT_DEV_ROOT_TOKEN_ID= \
VAULT_ACC= \
VAULT_TEST_LOG_DIR=<< parameters.log_dir >> \
gotestsum --format=short-verbose --junitfile test-results/go-test/results.xml -- \
-tags "${GO_TAGS}" \
-timeout=60m \
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config/jobs/build-go-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:
mkdir ./pkg
# Build dev binary
make bootstrap dev
make ci-bootstrap dev
- persist_to_workspace:
root: .
paths:
Expand Down
3 changes: 3 additions & 0 deletions .circleci/config/jobs/test-go-race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ steps:
- checkout
- go_test:
extra_flags: "-race"
log_dir: "/tmp/testlogs"
- store_artifacts:
path: test-results
- store_test_results:
path: test-results
- store_artifacts:
path: "/tmp/testlogs"
6 changes: 5 additions & 1 deletion .circleci/config/jobs/test-go.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
executor: go-machine
parallelism: 2
steps:
- check-branch-name
- setup-go
- checkout
- go_test
- go_test:
log_dir: "/tmp/testlogs"
- store_artifacts:
path: test-results
- store_test_results:
path: test-results
- store_artifacts:
path: "/tmp/testlogs"
Loading

0 comments on commit 5dcfb4c

Please sign in to comment.