Anna Shaleva
35590f0c96
circleci: update cache key to avoid fetching outdated cache
...
Avoid the following problem:
```
Found a cache from build 55879 at deps-
Size: 178 MiB
Cached paths:
* /go/pkg/mod
Downloading cache archive...
Validating cache...
Unarchiving cache...
Failed to unarchive cache
Error untarring cache: Error extracting tarball /tmp/cache87609141 : tar: go: Cannot mkdir: Permission denied tar: go/pkg/mod: Cannot mkdir: No such file or directory tar: go: Cannot mkdir: Permission denied tar: go/pkg/mod/cache: Cannot mkdir: No such file or directory tar: go: Cannot mkdir: Permission denied tar: go/pkg/mod/cache/download: Cannot mkdir: No such file or directory tar: go: Cannot mkdir: Permission denied tar: go/pkg/mod/cache/download/cloud.google.com: Cannot mkdir: No such file or directory tar: go: Cannot mkdir: Permission denied tar: go/pkg/mod/cache/download/cloud.google.com/go: Cannot mkdir: No such file or directory tar: go: Cannot mkdir: Permission denied tar: go/pkg/mod/cache/download/cloud.google.com/go/@v: Cannot mkdir: No such file or directory tar: go: Cannot mkdir: Permission denied tar: go/pkg/mod/cache/download/cloud.google.com/go/@v/list: Cannot open: No such file or directory tar: go: Cannot mkdir: Permission denied tar: go/pkg/mod/cache/download/cloud.google.com/go/@v/list.lock: Cannot open: No such file or directory tar: go: Cannot mkdir: Pe: exit status 2
```
2022-03-30 12:18:01 +03:00
AnnaShaleva
d2bc4473ce
circleci: upgrade golangci linter version
...
The old one isn't able to properly work with go > 1.15. However, the updated
version doesn't work with go 1.18, see https://github.com/golangci/golangci-lint/issues/2649 .
So let's keep go1_17 runner with the latest golangci by now.
2022-03-18 11:09:30 +03:00
Anna Shaleva
e8d15b1b7e
workflows: upgrade supported go version
2022-03-18 11:09:30 +03:00
AnnaShaleva
f50815d9b9
circleci: migrate from unsupported base images to the recommended ones
...
See also https://github.com/CircleCI-Public/cimg-go/issues/158#issuecomment-1060586504 solution.
2022-03-18 11:09:30 +03:00
Anna Shaleva
6332d3604f
codecov: adjust codecov config and remove CircleCI coverage job
...
Let's keep the only coverage job, so that CircleCI and GithubAction
coverage do not conflict with each other.
Also, let's do not require all other tests to pass to report the
coverage.
2022-02-03 16:21:15 +03:00
Evgeniy Stratonikov
31eed060ad
.circleci: update golangci-lint to v1.42.1
...
Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
2021-09-15 17:44:41 +03:00
Roman Khimov
2585713f31
*: use Go 1.17 by default, test with 1.15, 1.16 and 1.17
2021-08-26 17:30:04 +03:00
Roman Khimov
ad5acf4873
*: drop Go 1.14
2021-08-25 14:59:00 +03:00
Roman Khimov
d4d8238e91
circleci: fix image build with latest alpine
...
Upgrade Docker, see
https://discuss.circleci.com/t/unable-to-use-make/40552
https://gitlab.alpinelinux.org/alpine/aports/-/issues/12396
2021-07-07 20:21:52 +03:00
Roman Khimov
50cb0450f2
circleci/workflows: drop vet run
...
golangci-lint already includes govet, so having it in a separate task doesn't
add any value (only increases CI running time).
2021-05-13 00:08:42 +03:00
Roman Khimov
c76f8b8fbe
Makefile: use golangci-lint instead of golint
...
It includes golint and also has a lot of other useful linters.
2021-05-12 23:38:35 +03:00
Anna Shaleva
cc112e1a89
*: add go 1.16 support
2021-03-02 14:04:35 +03:00
Anna Shaleva
5bd809f9c8
*: drop go 1.13 support
2021-03-01 14:56:49 +03:00
Anna Shaleva
d5bc65eed4
circleci: update Go build version
2021-02-24 23:20:16 +03:00
Roman Khimov
eee457ae49
drop support for Go 1.12
...
It's old and not maintained. Use latest Go for builds and test only with 1.13
and 1.14.
2020-08-06 16:29:55 +03:00
Evgenii Stratonikov
ad9d927ae4
.circleci: count coverage only for cli/ and pkg/
...
examples/ contain only smart-contract examples and
is here for illustrative purposes.
2020-04-14 16:10:24 +03:00
Evgenii Stratonikov
86c9bcbffe
.circleci: use a separate job for coverage testing
...
When using -race flag more memory can be consumed.
2020-04-14 15:17:09 +03:00
Evgenii Stratonikov
9630f63224
.circleci: enable -coverpkg=all
...
We want to count test for coverage irregardless
of where it is located. Previously error "no non-test Go files"
was preventing us from doing so. This commit fixes it.
2020-04-14 15:11:36 +03:00
Evgenii Stratonikov
4fe8137a41
.circleci: add go1.14 tests
2020-03-25 17:56:06 +03:00
Roman Khimov
e41d434a49
*: move all packages from CityOfZion to nspcc-dev
2020-03-03 17:21:42 +03:00
Roman Khimov
f1e87f497b
circleci: get submodules on checkout, fix failing tests
2019-12-04 20:36:51 +03:00
Evgeniy Kulikov
ab4a0e1b2c
CI: step build_image should use golang:1-alpine
...
- restoring dependencies
- make `deps` requires golang installed
2019-11-18 17:17:22 +03:00
Roman Khimov
00a290de07
update minimum supported version of Go to 1.12
...
Go 1.11 is not supported upstream and it also breaks our precious VM for some
reason, so use better versions of Go. Fixes #384 .
2019-09-10 20:30:54 +03:00
Roman Khimov
bd2e347928
circleci: add Go 1.13 support, use as a reference for coverage
...
But don't use it for binary builds at the moment.
2019-09-09 14:59:09 +03:00
Roman Khimov
383bececb8
circleci: add codecov integration
2019-08-30 16:44:51 +03:00
Roman Khimov
1af46d6637
circleci: add artifact store for the binary
2019-08-29 18:51:27 +03:00
Roman Khimov
6964d86347
circleci: fix make target name for Docker image
2019-08-29 15:48:05 +03:00
Roman Khimov
1871040de6
circleci: fix workflow version
...
Only version 2 is supported at the moment as per
https://circleci.com/docs/2.0/configuration-reference/#version-1
Not to confuse with top-level version which really can be 2.1.
2019-08-29 15:44:39 +03:00
Roman Khimov
16e0fcde1f
circleci: update tag specs in workflows
...
Use go-style version tags as suggested by @im-kulikov.
2019-08-21 20:02:43 +03:00
Roman Khimov
8ff9121ee5
circleci: update config to include cli and docker builds
...
Merges old config into the new one, closes #306 .
2019-08-21 19:12:13 +03:00
Evgeniy Kulikov
94eb16c9ca
Add CircleCI to dev-branch ( #165 )
2019-02-27 13:49:16 +00:00