Skip to content

Commit f54fbe7

Browse files
authored
GT-478 Migration to CircleCI (#1421)
1 parent ed2ddc3 commit f54fbe7

File tree

3 files changed

+73
-24
lines changed

3 files changed

+73
-24
lines changed

.circleci/config.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
version: 2.1
2+
orbs:
3+
slack: circleci/slack@4.1
4+
5+
executors:
6+
golang-executor:
7+
docker:
8+
- image: gcr.io/gcr-for-testing/golang:1.20.8
9+
10+
jobs:
11+
check-code:
12+
executor: golang-executor
13+
steps:
14+
- setup_remote_docker:
15+
docker_layer_caching: true
16+
- checkout
17+
- run:
18+
name: Install deps
19+
command: |
20+
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
21+
make vendor
22+
make tools-min
23+
exit 0
24+
fi
25+
apt-get update
26+
apt-get install -y unzip
27+
make init
28+
- run:
29+
name: License check
30+
command: |
31+
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
32+
echo "This is not a pull request. Skipping..."
33+
exit 0
34+
fi
35+
make license-verify license-range-verify
36+
- run: make fmt-verify
37+
- run: make linter
38+
- run:
39+
name: Unit tests
40+
command: |
41+
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
42+
echo "This is not a pull request. Skipping..."
43+
exit 0
44+
fi
45+
make run-unit-tests
46+
- run:
47+
name: make bin
48+
command: |
49+
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
50+
echo "This is not a pull request. Skipping..."
51+
exit 0
52+
fi
53+
make bin
54+
- run:
55+
name: vulncheck
56+
command: |
57+
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
58+
echo "This is not a pull request. Skipping..."
59+
exit 0
60+
fi
61+
make vulncheck
62+
environment:
63+
GO111MODULES: off
64+
65+
workflows:
66+
version: 2
67+
68+
# Default workflow
69+
run_tests:
70+
jobs:
71+
- check-code

.travis.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This team will own the entire repository
2+
* @arangodb/team-golang

0 commit comments

Comments
 (0)