Skip to content

Commit

Permalink
GT-478 Migration to CircleCI (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwierzbo authored Sep 28, 2023
1 parent ed2ddc3 commit f54fbe7
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 24 deletions.
71 changes: 71 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
version: 2.1
orbs:
slack: circleci/[email protected]

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 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions docs/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This team will own the entire repository
* @arangodb/team-golang

0 comments on commit f54fbe7

Please sign in to comment.