mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2026-05-15 13:46:54 -04:00
Compare commits
4 commits
main-v1
...
poc/nomad-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fc771827e |
||
|
|
a70a2f3d47 |
||
|
|
de248fb9b2 |
||
|
|
b55bcd660e |
1 changed files with 28 additions and 0 deletions
28
build.sh
Executable file
28
build.sh
Executable 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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue