2019-11-20 16:11:28 +00:00
|
|
|
executor: "<< parameters.executor >>"
|
|
|
|
parameters:
|
|
|
|
test_packages:
|
|
|
|
type: string
|
|
|
|
default: ""
|
2020-05-30 14:29:47 +00:00
|
|
|
test_module:
|
|
|
|
type: string
|
|
|
|
default: ""
|
2019-11-20 16:11:28 +00:00
|
|
|
exclude_packages:
|
|
|
|
type: string
|
|
|
|
default: ""
|
|
|
|
executor:
|
|
|
|
type: string
|
|
|
|
default: "go-machine-recent"
|
|
|
|
goarch:
|
|
|
|
type: string
|
|
|
|
default: "amd64"
|
|
|
|
environment:
|
|
|
|
GOTEST_PKGS_EXCLUDE: "<< parameters.exclude_packages >>"
|
|
|
|
GOTEST_PKGS: "<< parameters.test_packages >>"
|
2020-05-30 14:29:47 +00:00
|
|
|
GOTEST_MOD: "<< parameters.test_module >>"
|
2019-11-20 16:11:28 +00:00
|
|
|
GOTESTARCH: "<< parameters.goarch >>"
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- install-golang
|
|
|
|
- install-protoc
|
|
|
|
- install-consul
|
|
|
|
- install-vault
|
|
|
|
- run:
|
|
|
|
name: Install 32bit gcc libs
|
|
|
|
command: |
|
|
|
|
if [ ! -z $GOTESTARCH ] && [ $GOTESTARCH == "386" ]; then
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y gcc-multilib
|
|
|
|
else
|
|
|
|
echo "Skipping 32bit lib installation while building for not 386"
|
|
|
|
fi
|
|
|
|
- run: PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" make bootstrap
|
|
|
|
- run-tests
|
|
|
|
- store_test_results:
|
|
|
|
path: /tmp/test-reports
|
|
|
|
- store_artifacts:
|
|
|
|
path: /tmp/test-reports
|