Commit Graph
150 Commits
Author SHA1 Message Date
Evan Kaloudis 3e51a7a6fe Makefile: Mobile builds: expose main sub-servers + set SUBSERVER_PREFIX flag by default 2022-05-11 13:18:17 -04:00
ErikEk 635cffa871 multi: add sub-server dep 2022-04-30 08:55:49 +02:00
Hampus Sjöberg 1786fdf4d4 mobile: Add iossimulator gomobile target to ios Makefile task 2022-03-31 12:10:13 +04:00
Hampus Sjöberg a97b194574 mobile: Add apple Makefile task for compiling xcframework for all Apple platforms 2022-03-27 02:33:59 +04:00
Hampus Sjöberg f015d885e4 mobile: Add macos Makefile task for compiling xcframework for macOS 2022-03-27 02:00:28 +04:00
Hampus Sjöberg b19f5b9743 Fix error in log message in Makefile ios task 2022-03-27 02:00:28 +04:00
Oliver Gugger 09406f613a make+tools: dockerize linting 2022-02-10 16:03:00 +01:00
naveen 192cee494f mod+tools+Makefile:separate tools different module
Separated the tools to different go module to avoid having tools
dependencies on the main module.
2022-02-10 11:02:01 +01:00
Oliver Gugger d1b512ff92 mod+make: replace goimports with gosimports 2022-02-10 11:02:00 +01:00
positiveblue 3c3bce3415 makefile: fail rpc-check after finding any changes
`rpc-check` is used in our CI pipeline to detect any difference
between the committed and the automatically generated rpc files.
Unfortunately, the current method only detects changes in the
already existing files and won't fail if `make rpc` generates
a totally new file.

`git status --porcelain` makes the trick, it returns a line for
each file that has been modified, created or deleted.
2022-01-29 11:23:24 -08:00
Joost Jager 2009aec59d itest: increase pg database connection limit 2022-01-04 08:29:22 +01:00
Liviu abada24899 make: don't optimize debug binaries
Disable compiler optimizations and function inlining on a debug build to
improve debugging experience.
2021-12-20 11:47:18 -08:00
yyforyongyu 0379b4f1bf makefile: add itest-clean to kill uncleaned processes 2021-12-04 14:54:37 +08:00
naveen b3ef3db0f2 multi: Remove GO111MODULE env variable in Makefile
The `GO111MODULE` variable is not required from go 1.16
https://go.dev/blog/go116-module-changes
2021-11-30 09:35:30 +01:00
Oliver Gugger 43158b6b59 mod+tools+Makefile: use go install to fetch dependencies
Instead of hard coding a commit to use for a binary tool that we use
during the build process, we now only use "go install" to install the
binaries and the golang builtin versioning system to pin the exact
version/commit we want to use in go.mod.
2021-11-30 09:35:25 +01:00
Oliver Gugger 44266f3889 GitHub+Makefile: remove travis goals 2021-11-29 12:52:26 +01:00
Oliver Gugger 8facc6f07e docs+Makefile: remove goveralls
We use a GitHub Action for sending the coverage to coveralls.io and
don't need the goveralls binary anymore.
2021-11-29 12:49:29 +01:00
Joost Jager 274faff980 postgres: add connection limit 2021-11-17 11:08:43 +01:00
Olaoluwa Osuntokun 1bff146c43 build: add new WASM specific release/build tags
We need to drop things like postgres+etcd, as they don't understand the
WASM/JS build target.
2021-11-15 17:14:09 -08:00
Hampus Sjöberg 082aeab24a build: make gomobile iOS build to .xcframework folder
Recent gomobile versions are now building for the `xcframework`
packaging format instead of `framework`. This commit addresses
this by outputting to a `.xcframework` folder.
2021-10-08 00:21:53 +02:00
Oliver Gugger 1774934666 multi: fix Postgres on Travis
Fixes the docker build that was caused by
https://github.com/docker-library/postgres/issues/884.
Using the alpine and version 13 image avoids the problem introduced
with postgres 14 and debian bullseye.
2021-10-05 20:48:48 +02:00
Joost Jager daeb96fe0a postgres: add itest 2021-09-21 10:44:23 +02:00
Oliver Gugger 74dc883aa4 GitHub+make: compile JSON/WASM stubs 2021-08-03 13:44:37 +02:00
Oliver Gugger 3d9d985fdf make: disable itest error whitelist check
Since we don't really do anything with the errors we check in the itest
error whitelist but get a lot of failed Travis runs because of it, we
disable the check for the moment.
2021-07-30 10:18:43 +02:00
Oliver Gugger 36a316e29a make+scripts: fix rpc-check command 2021-07-27 12:59:54 +02:00
Andras Banki-Horvath 798bf05838 build: add itest-race build target to catch data races with itests
This commit adds itest-race build target that can be used with
individual itests to detect and catch uncovered data races.
2021-07-22 15:15:35 +02:00
eugene 13d7e97a84 docs: update fuzz.md to explain new build/run process 2021-06-16 12:49:26 -04:00
carla a80a6f0453 Makefile: bump goacc commit 2021-04-13 15:39:03 +02:00
Johan T. Halseth 2868b22083 make: pass mobile subserver prefix to docker when generating mobile RPC 2021-04-06 12:52:27 +02:00
Conner Fromknecht c9ed5927f6 Merge pull request #5038 from cfromknecht/debug-unit
make: add unit-debug target
2021-02-19 14:01:31 -08:00
Oliver Gugger fdbd4da771 make: use make for docker-release
To fix an issue where the golang version would be picked up from the
host system if the docker-release command was used, we switch over to
using make inside of the container as well instead of feeding the
parameters into the release script manually.
We only pass in the flags that we might actually want to overwrite.
2021-02-17 18:11:42 +01:00
Conner Fromknecht 7f9dcc143f make: add unit-debug target 2021-02-17 08:47:59 -08:00
Oliver Gugger 3ddb92d99b make: clean mobile stubs before building release
To fix an issue where the vendor.tar.gz in a release build had a
different hash if the mobile RPC stubs were in the mobile/ folder, we
clean those out first.

The culprit was the `google.golang.org/grpc/test/bufconn` package which
is currently only used in the mobile RPC stubs and nowhere else.
Therefore the vendor/module.txt was different when vendoring with the
generated mobile RPC stubs being around.
2021-02-05 13:11:35 +01:00
Johan T. Halseth 315f97ffd5 Merge pull request #4911 from guggero/docker-rpc-compile
lnrpc+mobile: use docker to compile/format protos
2021-02-01 13:42:42 +01:00
Johan T. Halseth 10a81e01e3 Merge pull request #2162 from halseth/make-goimports
[Makefile] Define `make imports`
2021-01-29 08:54:00 +01:00
Oliver Gugger 3bcfe931f9 make+lnrpc: compile mobile RPC with docker too
Now that we have a base docker image that has all our RPC compilation
dependencies installed, we can also run the mobile RPC compilation
there. This removes the need to install falafel and goimports on the
local machine.
2021-01-28 10:29:02 +01:00
Oliver Gugger e9a0f36786 make+lnrpc: use docker to compile protos
This commit aims to make it easier for developers to compile our
protobuf definitions. They now only need to have docker installed
instead of a whole set of binaries and libraries all pinned to very
specific versions.
2021-01-28 10:27:09 +01:00
Olaoluwa Osuntokun b2857bf392 Merge pull request #4914 from guggero/docker-verification
docker: add verification script
2021-01-18 15:29:15 -08:00
Olaoluwa Osuntokun ff897db293 Merge pull request #4901 from bhandras/etcd_itest_ci
etcd+itests: use itest generated ports for embedded etcd and add etcd itests to travis CI
2021-01-14 17:53:54 -08:00
Oliver Gugger 25ac071300 build: add release-install goal, hash individual binaries
We add a new make goal called release-install that creates the same
reproducible binaries as the release script would create, but only for
the current OS/architecture. It then installs those binaries to the
system's GOBIN directory.
To allow easy verification of individual binaries (instead of just the
packag tarballs/zips), we also add the hashes of lnd and lncli binaries
to the manifest. We do the same in the docker build.
2021-01-13 15:36:11 +01:00
Oliver Gugger 4c56f3cacb multi: add release helper docker file 2021-01-08 16:14:24 +01:00
Andras Banki-Horvath b2ab5e8af1 itests: run etcd itests with generated ports 2021-01-08 15:39:12 +01:00
Oliver Gugger 330f3c4dd0 make: use --tags to describe commit 2021-01-08 11:27:46 +01:00
Johan T. Halseth 892635a93d make: run goimports during make fmt 2020-12-18 09:04:44 +01:00
Johan T. Halseth 6dfefe39ce make: exclude autogenerated files from go fmt 2020-12-18 09:04:44 +01:00
Oliver Gugger b42c5e5fad make+scripts: use pre-compiled btcd in itest
To make sure we build the exact version of btcd that is referenced in
the project's go.mod file and to not overwrite any binary the user might
already have installed on the system, we compile btcd into an explicit
file in the itest directory.
This should also speed up invocations of "make itest-only" because the
test harness doesn't always compile btcd on its own.

We also fix a bug with the version parsing where adding a "replace"
directive in the go.mod would result in the awk commands to extract the
wrong version. Because we no longer use the DEPGET goal to build and
install btcd, using a replace directive now actually works for itests.
2020-12-03 23:23:49 +01:00
Oliver Gugger 8829960b1a make+Travis: use EXEC_SUFFIX for Windows, remove explicit goal
To remove the need to have an extra make goal for the Windows itests, we
instead add the flag windows=1 that sets the make variable EXEC_SUFFIX
to properly add the ".exe" suffix to all executable names.
2020-12-03 23:23:49 +01:00
Oliver Gugger b91b7434f6 make: replace ITEST goal with script
To make the Makefile a bit easier to understand, we remove the implicit
ITEST goal/command variable and switch all itest execution over to
explicit goals in the main Makefile.
2020-12-03 23:23:44 +01:00
Oliver Gugger 47e8882480 make+itest: allow the same test to be run in parallel 2020-11-10 13:57:31 +01:00
Oliver Gugger d4068e9892 travis+make: execute test groups in parallel 2020-11-04 11:03:33 +01:00