Commit graph

40 commits

Author SHA1 Message Date
Elle Mouton
caec0742db
db/sqlc: add account related tables and queries
This commit also contains the sqlc.yaml file, the `make sqlc` command
and the script for generating sqlc code. This must be done in this
commit as the script only works if there are queries to generate from.
2025-01-29 16:37:20 +02:00
Elle Mouton
43e1c9ee2d
make: move UNIT variables to testing_flags.mk
And use the new COMPILE_TAGS variable for the unit commands instead of
LND_RELEASE_TAGS.
2025-01-06 08:41:00 +02:00
Oliver Gugger
a7aabcd21b
make: add flake-itest-only goal 2024-11-07 09:41:12 +01:00
Oliver Gugger
7cead0194a
make+perms: allow itest to run with dev build tag
The dev flag allows us to enable some of lnd's configuration flags that
are only available for testing. To speed up any wallet interaction, we
also add the lowscrypt build tag that chooses weak encryption for the
wallet that is much faster (a couple of milliseconds vs. multiple
seconds per wallet creation).
2024-11-07 09:39:16 +01:00
Oliver Gugger
fc77836204
make+app: add dockerized builder for app
We dockerize the app build and use that for both the docker build _AND_
the normal build to make sure the static content is fully reproducible
across different systems.
2024-10-24 11:17:49 +02:00
ffranr
acf547ef3d
makefile+scripts: add Go version check to release command
This commit updates `scripts/release.sh` to include a check for the
correct Go version before executing the release build. This ensures that
the release binaries are built with the specified Go version,
maintaining consistency and integrity for developer signatures.
2024-10-23 14:32:18 +02:00
Oliver Gugger
1338cfad84
make+scripts: add lint check for Golang version
To make sure we use the same Golang version everywhere, we add a new
linter step with scripts copied from lnd.
2024-10-23 14:32:18 +02:00
Oliver Gugger
30eb7e4d2f
make+release: move release script, fix make
Because the "make release" command collided with the release.sh script,
make thought it needed to do something with that file.
We fix that problem in two ways: We move the file into the scripts sub
folder and also tell make that all our defined goals don't correspond to
folders or files.
2024-10-23 14:32:18 +02:00
Oliver Gugger
81f44b7785
multi: add Docker release helper 2024-10-23 11:50:42 +02:00
sputn1ck
bc0bc687ae
multi: add support for building without UI
This commit adds support for building without UI.
If the build tag "litd no_ui" is set the UI will
be disabled.
2024-08-14 13:33:38 +02:00
ffranr
af495cb1b8
makefile: add target clean-itest
This commit adds the command clean-itest. This command deletes itest
binaries.
2024-06-20 17:30:32 +01:00
ffranr
d3aa5f9c9b
makefile: build-itest builds litd-itest 2024-06-20 17:30:31 +01:00
bitromortac
f030c28d68
tools: update linter to latest version
Fixes the timeout keyword.

Also enable speedups by mounting go caches as well as a golangci-lint
cache that caches linter data accross runs.
2024-04-25 14:49:36 +02:00
Viktor Tigerström
ed0e713ff5
make: install litcli with make go-install-cli 2023-06-16 21:59:39 +02:00
Viktor Tigerström
f64c535154
make: add trimpath flag to make go-install cmd 2023-06-16 21:59:28 +02:00
Oliver Gugger
a6a3ab6c24
release+make: also build tapcli 2023-05-16 17:00:55 +02:00
Oliver Gugger
539868d2be
tools+make: update linter 2023-03-29 20:34:34 +02:00
positiveblue
c267ef64eb
multi: update lnd dependency to v0.16.0-beta.rc3
- Bump lnd and other module dependencies.
- Bump Go build version & RPCs
- Refactor itests to use the new lnd itest framework.
2023-03-15 08:36:23 -07:00
Elle Mouton
69516ec675
litrpc: add lit-autopilot protos
In this commit we add all the proto methods and messages that we will
need for the initial autopilot implementation.
2023-01-27 06:47:11 +02:00
Oliver Gugger
843a3fc86a
multi: dockerize tools 2022-10-19 10:57:18 +02:00
Oliver Gugger
ebb5e94381
multi: remove GO111MODULE, add icase flag to itest 2022-10-19 10:57:18 +02:00
Elle Mouton
3e23ae3001
Makefile+github: run unit tests
Currently only the unit-race check and the integration tests are run.
This commit ensures that the unit tests are also run.
2022-09-23 10:32:36 +02:00
Oliver Gugger
eb5782b923
make+GitHub: fix and run unit tests 2022-09-15 13:03:03 +02:00
Oliver Gugger
2e596e2cd2
terminal+make: encode and print LiT version
Fixes #328 by encoding the LiT version and also printing it on startup.
2022-02-17 16:35:56 +01:00
Oliver Gugger
82556f5775
itest+make: add remote mode integration test 2022-02-08 15:33:19 +01:00
Oliver Gugger
3fc65556c5
itest: copy integration test framework from lnd 2022-02-08 15:33:16 +01:00
Elle Mouton
9b84dbc7c9
cmd/litcli: add litcli for session functions 2021-11-24 13:44:26 -05:00
Oliver Gugger
81e893f7b5
multi: add litrpc package 2021-11-24 13:44:25 -05:00
Oliver Gugger
8e422d058e
multi: create second image with path prefix
We want to allow users to use LiT under a custom path to make it easier
to integrate LiT in bundled software such as BTCPayServer. Because the
custom path prefix must be known at build time, we create an additional
docker image that uses the static /lit path as the prefix.
2021-11-01 12:27:41 +01:00
Oliver Gugger
a6a1127cf4
multi: use Docker for proto compilation
To remove the need for a dev to install a specific version of protoc we
now use a docker image for compiling the protos.
2021-07-16 13:23:27 +02:00
Oliver Gugger
90f08a6467
multi: replace statik with go1.16 embed directive
We can now simply use the //go:embed directive to compile everything in
the app/build directory into our root package.
2021-03-03 10:02:55 +01:00
Oliver Gugger
7fe6fc7c52
make: compile pool commit into binaries
To make sure the correct user agent string is sent from accounts/orders
created by LiT, we compile in the referenced Pool commit.
2021-01-29 13:13:57 +01:00
Oliver Gugger
378687b522
make: add independent statik-only goal
To separate the asset to golang conversion step from the node app build,
we add a new, independent goal for just the statik command. That way we
can cleanly separate between stuff that needs yarn/nodejs installed and
stuff that needs golang installed.
2020-12-10 11:04:20 +01:00
Oliver Gugger
35d5d6b462
multi: check compiled protos in GH actions
To make sure the compiled protos in the git repository are always up to
date, we add a GitHub action that checks them by compiling and diffing
the files.
2020-12-10 11:04:20 +01:00
Oliver Gugger
d18397fe2b
make: add go-install-cli target 2020-11-25 15:28:50 +01:00
Oliver Gugger
5fd55d9acd
make: compile in loop commit/version 2020-11-12 20:57:23 +01:00
Oliver Gugger
881ab4093a
cmd: rename binary to litd 2020-07-21 22:10:33 +02:00
Oliver Gugger
33df4a1698
multi: rename golang and make files to lightning-terminal 2020-07-21 22:06:15 +02:00
Oliver Gugger
d73632ab70
Makefile: add shushtar prefix to commit version
The version string on boot up displays the lnd version hard coded in
lnd/build/version.go but the commit of shushtar (currently
v0.1.0-alpa.rcX). This could be confusing to users, why the second
version is completely different. I added the prefix "shushtar-" to the
commit to make it clear it is referencing the shushtar repo.

We also fix the Makefile to properly compile in the commit hash.
2020-06-18 10:03:58 +02:00
Oliver Gugger
5f98f96ea4
make: add build and release commands 2020-06-02 14:29:39 +02:00