From 7fc475de3f7f27ba8ee447ae9dc80898bcabf4fd Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 24 Jan 2021 01:18:37 +0100 Subject: ci: test both in-memory and filesystem --- .builds/alpine-edge-amd64.yml | 16 ++++++++++------ .builds/debian-stable-aarch64.yml | 8 ++++++-- .builds/debian-stable-amd64.yml | 10 +++++----- .builds/freebsd-latest-amd64.yml | 16 ++++++++++------ .github/workflows/main.yml | 4 ++-- 5 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.builds/alpine-edge-amd64.yml b/.builds/alpine-edge-amd64.yml index e11638d..0869f6d 100644 --- a/.builds/alpine-edge-amd64.yml +++ b/.builds/alpine-edge-amd64.yml @@ -18,14 +18,18 @@ tasks: mv ~/zig-linux-* ~/zig-master echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv - - test: | + - test_in_memory: | cd zig-sqlite - TERM=dumb zig build test + TERM=dumb zig build test -Din_memory=true - - test_in_memory: | + - test_filesystem: | + cd zig-sqlite + TERM=dumb zig build test -Din_memory=false + + - test_in_memory_with_bundled_library: | cd zig-sqlite - TERM=dumb zig build test -Din_memory + TERM=dumb zig build test -Din_memory=true -Duse_bundled - - test_with_bundled_library: | + - test_filesystem_with_bundled_library: | cd zig-sqlite - TERM=dumb zig build test -Din_memory -Duse_bundled \ No newline at end of file + TERM=dumb zig build test -Din_memory=false -Duse_bundled diff --git a/.builds/debian-stable-aarch64.yml b/.builds/debian-stable-aarch64.yml index c317494..1204536 100644 --- a/.builds/debian-stable-aarch64.yml +++ b/.builds/debian-stable-aarch64.yml @@ -17,6 +17,10 @@ tasks: mv ~/zig-linux-* ~/zig-master echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv - - test: | + - test_filesystem: | cd zig-sqlite - TERM=dumb zig build test + TERM=dumb zig build test -Din_memory=false + + - test_filesystem_with_bundled_library: | + cd zig-sqlite + TERM=dumb zig build test -Din_memory=false -Duse_bundled diff --git a/.builds/debian-stable-amd64.yml b/.builds/debian-stable-amd64.yml index d129c03..03ec7d9 100644 --- a/.builds/debian-stable-amd64.yml +++ b/.builds/debian-stable-amd64.yml @@ -17,16 +17,16 @@ tasks: mv ~/zig-linux-* ~/zig-master echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv - - test: | + - test_in_memory: | cd zig-sqlite - TERM=dumb zig build test + TERM=dumb zig build test -Din_memory=true - - test_in_memory: | + - test_filesystem: | cd zig-sqlite - TERM=dumb zig build test -Din_memory + TERM=dumb zig build test -Din_memory=false # TODO(vincent): This fails with Debian for some reason # # - test_with_bundled_library: | # cd zig-sqlite - # TERM=dumb zig build test -Din_memory -Duse_bundled \ No newline at end of file + # TERM=dumb zig build test -Din_memory -Duse_bundled diff --git a/.builds/freebsd-latest-amd64.yml b/.builds/freebsd-latest-amd64.yml index 25a2374..a380814 100644 --- a/.builds/freebsd-latest-amd64.yml +++ b/.builds/freebsd-latest-amd64.yml @@ -17,14 +17,18 @@ tasks: mv ~/zig-freebsd-* ~/zig-master echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv - - test: | + - test_in_memory: | cd zig-sqlite - TERM=dumb zig build test + TERM=dumb zig build test -Din_memory=true - - test_in_memory: | + - test_filesystem: | + cd zig-sqlite + TERM=dumb zig build test -Din_memory=false + + - test_in_memory_with_bundled_library: | cd zig-sqlite - TERM=dumb zig build test -Din_memory + TERM=dumb zig build test -Din_memory=true -Duse_bundled - - test_with_bundled_library: | + - test_filesystem_with_bundled_library: | cd zig-sqlite - TERM=dumb zig build test -Din_memory -Duse_bundled \ No newline at end of file + TERM=dumb zig build test -Din_memory=false -Duse_bundled diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ead0083..25e89bb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: run: zig build - name: Run Tests with filesystem - run: zig build test + run: zig build test -Din_memory=false - name: Run Tests in memory - run: zig build test + run: zig build test -Din_memory=true -- cgit v1.2.3