/
config.yml
48 lines (45 loc) · 1.24 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
# common setup and steps
defaultEnv:
&defaultEnv
docker:
# specify the version
- image: docker.io/fortio/fortio.build:v50@sha256:fe69c193d8ad40eb0d791984881f3678aead02660b8e3468c757f717892ada4c
working_directory: /build/fortio
jobs:
unit-tests:
<<: *defaultEnv
steps:
- checkout
- run: make test
# The resource_class feature allows configuring CPU and RAM resources for each job. Different resource classes are available for different executors. https://circleci.com/docs/2.0/configuration-reference/#resourceclass
resource_class: large
release-tests:
<<: *defaultEnv
steps:
- setup_remote_docker:
version: 20.10.12
- checkout
- run: make release-test
linters:
<<: *defaultEnv
steps:
- checkout
# If ran with default we get random errors because OOM killer kills some linters
- run: make local-lint DEBUG_LINTERS="--concurrency=2"
codecov:
<<: *defaultEnv
steps:
- checkout
- run: make coverage
workflows:
version: 2
all:
jobs:
- unit-tests
- release-tests
- codecov
- linters