Compare commits

..

4 Commits

Author SHA1 Message Date
Quentin Dufour 9fc771827e add missing environment variable 2023-03-14 19:25:54 +01:00
Quentin Dufour a70a2f3d47 add missing error management 2023-03-14 17:13:32 +01:00
Quentin Dufour de248fb9b2 real build.sh file 2023-03-14 16:57:12 +01:00
Quentin Dufour b55bcd660e dummy build script 2023-03-14 16:35:47 +01:00
2 changed files with 28 additions and 7 deletions
Executable
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
set -euxo pipefail
echo "-- check --"
nix-shell --attr rust --run "cargo fmt -- --check"
echo "-- build --"
nix-build --no-build-output --attr clippy.amd64 --argstr git_version $COMMIT
echo "-- unit tests --"
export GARAGE_TEST_INTEGRATION_EXE=result-bin/bin/garage
nix-build --no-build-output --attr test.amd64
./result/bin/garage_db-*
./result/bin/garage_api-*
./result/bin/garage_model-*
./result/bin/garage_rpc-*
./result/bin/garage_table-*
./result/bin/garage_util-*
./result/bin/garage_web-*
./result/bin/garage-*
echo "-- integration tests --"
./result/bin/integration-*
echo "-- smoke tests --"
rm result
nix-build --no-build-output --attr clippy.amd64 --argstr git_version $COMMIT
nix-shell --attr integration --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
-7
View File
@@ -32,13 +32,6 @@ in {
i386 = build_debug_and_release "i686-unknown-linux-musl"; i386 = build_debug_and_release "i686-unknown-linux-musl";
arm64 = build_debug_and_release "aarch64-unknown-linux-musl"; arm64 = build_debug_and_release "aarch64-unknown-linux-musl";
arm = build_debug_and_release "armv6l-unknown-linux-musleabihf"; arm = build_debug_and_release "armv6l-unknown-linux-musleabihf";
win = {
amd64 = build_debug_and_release "x86_64-w64-mingw32";
};
apple = {
arm64 = build_debug_and_release "aarch64-apple-darwin";
amd64 = build_debug_and_release "x86_64-apple-darwin";
};
}; };
test = { test = {
amd64 = test (compile { amd64 = test (compile {