Skip to content

Commit aeef40d

Browse files
committed
ci: add a test that the amalgamation build correctly
1 parent 54e6804 commit aeef40d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitlab-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,14 @@ cmake-test:
109109
coverage_report:
110110
coverage_format: cobertura
111111
path: coverage.xml
112+
113+
amalgamation-test:
114+
image: greenaddress/wallycore@sha256:956b107d688f549c6e3884424991b7d3d34d84173990d43046fd760d7918db7c
115+
tags:
116+
- ga
117+
script:
118+
- touch config.h
119+
- gcc -Wall -W -Wextra -Werror -I. -I./src -I./src/ccan -I./src/secp256k1/include src/ctest/amalgamation_compile_test.c
120+
- gcc -DBUILD_ELEMENTS -Wall -W -Wextra -Werror -I. -I./src -I./src/ccan -I./src/secp256k1/include src/ctest/amalgamation_compile_test.c
121+
- clang -Wall -W -Wextra -Werror -I. -I./src -I./src/ccan -I./src/secp256k1/include src/ctest/amalgamation_compile_test.c
122+
- clang -DBUILD_ELEMENTS -Wall -W -Wextra -Werror -I. -I./src -I./src/ccan -I./src/secp256k1/include src/ctest/amalgamation_compile_test.c
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* Tests that including the entire library as a single source file works */
2+
#include "../amalgamation/combined.c"
3+
4+
int main(int argc, char *argv[])
5+
{
6+
(void) argc;
7+
(void) argv;
8+
9+
wally_init(0);
10+
return wally_cleanup(0);
11+
}

0 commit comments

Comments
 (0)