Commit Graph

37 Commits

Author SHA1 Message Date
Jakub Sokołowski 8e95f75a38
chore(ci): drop build discord noficiation
No longer necessary due to fleet decomissioning:
https://github.com/status-im/infra-go-waku/issues/18

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-02-14 16:33:44 +01:00
Jakub Sokołowski 75a2aee295
chore: upgrade CI from Nix 2.14 to 2.19
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-02-13 23:01:13 +01:00
Jakub Sokołowski d8d67d8eb5
chore: update Nix version label for Jenkins CI (#936)
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-11-29 17:16:22 -04:00
apentori e1266b836b
feat: setting image deployment to Harbor Registry (#927)
Signed-off-by: Alexis Pentori <alexis@status.im>
2023-11-28 10:15:18 -04:00
richΛrd 792b73b358
chore: extract linux build to separate workflow (#918) 2023-11-22 09:13:23 -04:00
Jakub Sokołowski 712febd32f
fix(ci): keep Image tag param value from last run
Except for `docker-manual` job.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-11-09 16:45:25 +01:00
harsh-98 d96e1aedde fix: postgres jenkensfile 2023-10-13 10:35:11 +07:00
harsh-98 2f9f304762 test: for postgres and jenkins postgres setup 2023-10-13 10:35:11 +07:00
Jakub Sokołowski 735c2fa0d7
ci: use latest and stable Docker tags based on job name
Also use Git commit by default if no tag is provided, but do not push.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-22 15:11:25 +02:00
Jakub Sokołowski c132ee4303
ci: drop pushing commit tags for Docker
Nobody is using them and we are just cluttering up the repo.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-20 15:53:35 +02:00
Jakub Sokołowski fcee52757e
ci: use wakuorg Docker Hub organization
We've been using `statusteam` Docker Hub org for a while now which was
never intended for public use, and we should be using `wakuorg` instead.

I've also updated references to `statusteam` in documentation and scripts.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-20 12:45:27 +02:00
Richard Ramos 7fbb9ebe42 chore: build examples as part of CI build process to capture compile errors 2023-09-06 10:05:26 -04:00
Jakub Sokołowski d860d825c1
ci: add RACE parameter to fix conditional (#648)
We are checking if `JOB_NAME` contains a token `race` to set the default
value for `RACE` parameter which decides which tests run.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-08-16 17:34:57 +05:30
richΛrd 164c92554b
refactor: c-bindings 2023-08-10 09:30:38 -04:00
Prem Chaitanya Prathi 95fc8ff77b
chore:address review comments 2023-08-09 10:21:20 +05:30
Prem Chaitanya Prathi 65f26978f9
chore: address review comments 2023-08-08 10:16:54 +05:30
Prem Chaitanya Prathi 7c632e40c0
chore: add new jenkins job file to run tests with race flag 2023-08-07 21:21:12 +05:30
Jakub Sokołowski 8fafc367eb
ci: cleanup Ganache container after tests finish
We've had too many leftover containers conflicting with new ones.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-05-05 18:24:06 +02:00
Richard Ramos fad1a98f77 chore: run onchain tests 2023-04-26 12:40:15 -04:00
Jakub Sokołowski 6550565afc
ci: adjust Docker Jenkinsfile for releases
Changes:

* Rename `BRANCH` to `GIT_REF` to indicate tags can be used.
* Default to `stable` for `IMAGE_TAG` on release builds.
* Use `GIT_REF` for specific Docker image tag instead of commit.
* Adjust some comments and descriptions.

Resolves:
https://github.com/waku-org/go-waku/issues/516

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-04-18 20:43:48 +02:00
Jakub Sokołowski fd5865b1dc
ci: fix GOPATH, PATH, disable GOCCHE
Using `$HOME/go` is bad and you should feel bad.
Also, adding `/usr/loca/go/bin` is a terrible idea.
And `GOCACHE` is poisoning stuff for linter.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-04-14 17:54:18 +02:00
Jakub Sokołowski 234c2b0400
nix: install golangci-lint in devel shell
This way we don't need to depend on `make deps`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-04-14 15:28:42 +02:00
Jakub Sokołowski 14a6f45be4
ci: use Nix dev shell from flake for CI builds
Provides a more predicable build environment for CI.

Depends on: https://github.com/status-im/status-jenkins-lib/pull/60

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-04-04 16:36:30 +02:00
Richard Ramos 3b3e3b6968 chore: use go 1.19 on CI 2023-04-03 10:43:01 -04:00
Jakub Sokołowski 349e22bbe8
nix: add Nix flake to build node and library
This way we can build node or the library locally using:
```sh
nix build
nix build .#node
nix build .#library
```
Or just start a shell with Go `1.19.x` using:
```
nix develop
```
Which simply has the same environment as the build shell for the node.

One known snag is that there is currently no simple way to keep `vendorSha256`
updated to match the contents of `go.mod` and `go.sum`. For more details see:
https://discourse.nixos.org/t/how-should-i-build-a-go-package-from-local-source/19490/8

One way around this would be to have our own `vendor` folder, but that's
also a pretty ugly solution that requires manual updating.

Resolves:
https://github.com/waku-org/go-waku/issues/256

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-03-05 15:04:07 +01:00
Richard Ramos 62e1f59d4f chore: setup linux ci for .deb 2022-12-06 15:48:48 -04:00
Richard Ramos c8fc0404d1
chore: rename status-im/go-waku to waku-org/go-waku 2022-11-09 16:03:40 -04:00
Jakub Sokołowski d4018d3f55
ci: separate discord notification into a function
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-19 09:50:27 +02:00
Jakub Sokołowski 8f783aac25
ci: add username and email to build notifications
Makes it easier to identify who to talk to about a deployment.

This depends on the following plugin being installed:
https://plugins.jenkins.io/build-user-vars-plugin/

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-19 09:50:26 +02:00
Jakub Sokołowski 1e09904523
ci: add diff link for previously deployed commit
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-28 17:03:52 +02:00
Jakub Sokołowski 5b42c98780 ci: add Discord notification for successful builds
This way teams can track what deployments happen when.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-27 19:24:49 +02:00
Richard Ramos cd79be4812
fix: jenkinscript (#304)
* chore: add jenkinsfile for tests
* chore: remove old jenkinsfile
* fix: lint
* fix: update cc-test-reporter
2022-09-12 10:13:38 -04:00
Richard Ramos 31ce4ed389
chore: release (#255)
* feat: ios build
* chore: build .deb and .rpm
* chore: use gcc-10
* fix: go tools and mobile versions
2022-06-19 17:50:37 -04:00
Anthony Laibe a6ae4b7140 feat: upload code coverage to code climate 2021-11-09 13:13:49 +01:00
Richard Ramos 74fab9e50d
chore: add codeclimate code coverage support (#126) 2021-11-02 09:55:28 -04:00
Anthony Laibe 94e8b9cf86 test: build example in jenkins
Add command for generating coverage
2021-11-01 20:40:39 +01:00
Jakub Sokołowski 5a7be16f32 ci: add Jenkinsfile for building Docker images
By pushing to `deploy-test` tag we can update the `go-waku.test` fleet.

Job: https://ci.status.im/job/go-waku/job/deploy-test/

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-10-27 10:40:33 +02:00