mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
GT-478 Migration to CircleCI (#1421)
This commit is contained in:
parent
ed2ddc302a
commit
f54fbe783e
3 changed files with 73 additions and 24 deletions
71
.circleci/config.yml
Normal file
71
.circleci/config.yml
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
version: 2.1
|
||||||
|
orbs:
|
||||||
|
slack: circleci/slack@4.1
|
||||||
|
|
||||||
|
executors:
|
||||||
|
golang-executor:
|
||||||
|
docker:
|
||||||
|
- image: gcr.io/gcr-for-testing/golang:1.20.8
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-code:
|
||||||
|
executor: golang-executor
|
||||||
|
steps:
|
||||||
|
- setup_remote_docker:
|
||||||
|
docker_layer_caching: true
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Install deps
|
||||||
|
command: |
|
||||||
|
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
|
||||||
|
make vendor
|
||||||
|
make tools-min
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y unzip
|
||||||
|
make init
|
||||||
|
- run:
|
||||||
|
name: License check
|
||||||
|
command: |
|
||||||
|
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
|
||||||
|
echo "This is not a pull request. Skipping..."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
make license-verify license-range-verify
|
||||||
|
- run: make fmt-verify
|
||||||
|
- run: make linter
|
||||||
|
- run:
|
||||||
|
name: Unit tests
|
||||||
|
command: |
|
||||||
|
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
|
||||||
|
echo "This is not a pull request. Skipping..."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
make run-unit-tests
|
||||||
|
- run:
|
||||||
|
name: make bin
|
||||||
|
command: |
|
||||||
|
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
|
||||||
|
echo "This is not a pull request. Skipping..."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
make bin
|
||||||
|
- run:
|
||||||
|
name: vulncheck
|
||||||
|
command: |
|
||||||
|
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
|
||||||
|
echo "This is not a pull request. Skipping..."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
make vulncheck
|
||||||
|
environment:
|
||||||
|
GO111MODULES: off
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
# Default workflow
|
||||||
|
run_tests:
|
||||||
|
jobs:
|
||||||
|
- check-code
|
24
.travis.yml
24
.travis.yml
|
@ -1,24 +0,0 @@
|
||||||
language: go
|
|
||||||
|
|
||||||
git:
|
|
||||||
depth: false
|
|
||||||
|
|
||||||
go:
|
|
||||||
- "1.20.8"
|
|
||||||
|
|
||||||
go_import_path: github.com/arangodb/kube-arangodb
|
|
||||||
|
|
||||||
env:
|
|
||||||
- GO111MODULES=off
|
|
||||||
|
|
||||||
script:
|
|
||||||
- |
|
|
||||||
set -e
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ ! -z "$ALWAYS" ]; then
|
|
||||||
make init
|
|
||||||
make license-verify license-range-verify fmt-verify linter vulncheck
|
|
||||||
make run-unit-tests
|
|
||||||
make bin
|
|
||||||
else
|
|
||||||
make vendor tools-min fmt-verify linter
|
|
||||||
fi
|
|
2
docs/CODEOWNERS
Normal file
2
docs/CODEOWNERS
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# This team will own the entire repository
|
||||||
|
* @arangodb/team-golang
|
Loading…
Reference in a new issue