-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (39 loc) · 1.39 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
40 lines (39 loc) · 1.39 KB
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
repos:
- repo: local
hooks:
- id: go-fmt
name: go fmt
entry: go fmt ./...
language: system
types: [go]
pass_filenames: false
fail_fast: true
- id: go-test
name: go test
entry: make test
language: system
types: [go]
pass_filenames: false
fail_fast: true
- id: go-benchmark
name: go benchmark
description: Run benchmarks and save results
entry: bash -c 'make benchmark-save && git add benchstat/latest.txt'
language: system
types: [go]
pass_filenames: false
- id: cross-benchmark
name: cross benchmark
description: Run benchmarks and save results
entry: bash -c 'make cross-benchmark && git add benchstat/cross'
language: system
types: [go]
pass_filenames: false
- id: benchstat
name: benchstat comparison
description: Compare benchmark results with previous run
entry: bash -c 'if [ -f benchstat/previous.txt ]; then make benchmark-compare && cp benchstat/latest.txt benchstat/previous.txt && git add benchstat/previous.txt; else make benchmark-save-as-previous && echo "First benchmark run - results stored for future comparison." && git add benchstat/previous.txt; fi'
language: system
types: [go]
pass_filenames: false
verbose: true