Skip to content

Commit 74bf4c5

Browse files
committed
circleci: fix CPUS export
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent dde66e8 commit 74bf4c5

File tree

2 files changed

+14
-47
lines changed

2 files changed

+14
-47
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ commands:
8585
# https://circleci.com/changelog#container-cgroup-limits-now-visible-inside-the-docker-executor
8686
CPUS="$(echo $(($(cat /sys/fs/cgroup/cpu/cpu.shares) / 1024)))"
8787
echo "export GOFLAGS='-p=${CPUS} -cpu=${CPUS}'" >> $BASH_ENV
88+
echo "export CPUS=${CPUS}" >> $BASH_ENV
8889
8990
jobs:
9091
tools:

.codecov.yml

+13-47
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,44 @@
11
codecov:
22
allow_coverage_offsets: true
33

4+
parsers:
5+
go:
6+
partials_as_hits: true
7+
48
coverage:
59
precision: 1
610
round: down
711
range: "70...100"
812

913
status:
14+
default_rules:
15+
flag_coverage_not_uploaded_behavior: include
16+
1017
project:
11-
default: false
12-
json:
13-
target: auto
14-
threshold: 1%
15-
if_not_found: success
16-
if_ci_failed: error
17-
flags:
18-
- json
19-
gojay:
18+
default:
2019
target: auto
2120
threshold: 1%
2221
if_not_found: success
2322
if_ci_failed: error
24-
flags:
25-
- gojay
23+
2624
patch:
27-
default: false
28-
json:
29-
only_pulls: true
30-
target: 50%
31-
threshold: 10%
32-
flags:
33-
- json
34-
gojay:
25+
default:
3526
only_pulls: true
3627
target: 50%
3728
threshold: 10%
38-
flags:
39-
- gojay
29+
4030
changes:
41-
default: false
42-
json:
31+
default:
4332
target: auto
4433
threshold: 10%
4534
if_not_found: success
4635
if_ci_failed: error
47-
flags:
48-
- json
4936
branches:
5037
- main
51-
gojay:
52-
target: auto
53-
threshold: 10%
54-
if_not_found: success
55-
if_ci_failed: error
56-
flags:
57-
- gojay
58-
branches:
59-
- main
60-
61-
flags:
62-
json:
63-
paths:
64-
- /
65-
carryforward: true
66-
gojay:
67-
paths:
68-
- /
69-
carryforward: true
70-
71-
ignore:
72-
- "internal/gojaypool/gojaypool.go"
7338

7439
comment:
7540
behavior: default
41+
require_changes: true
7642
show_carryforward_flags: true
7743

7844
github_checks:

0 commit comments

Comments
 (0)