diff options
| author | 2021-01-24 01:18:37 +0100 | |
|---|---|---|
| committer | 2021-01-24 01:23:09 +0100 | |
| commit | 7fc475de3f7f27ba8ee447ae9dc80898bcabf4fd (patch) | |
| tree | 8eadeaad1ab8440d104d3d66952d8377bbdaa9d0 | |
| parent | build: default to in-memory tests (diff) | |
| download | zig-sqlite-7fc475de3f7f27ba8ee447ae9dc80898bcabf4fd.tar.gz zig-sqlite-7fc475de3f7f27ba8ee447ae9dc80898bcabf4fd.tar.xz zig-sqlite-7fc475de3f7f27ba8ee447ae9dc80898bcabf4fd.zip | |
ci: test both in-memory and filesystem
| -rw-r--r-- | .builds/alpine-edge-amd64.yml | 16 | ||||
| -rw-r--r-- | .builds/debian-stable-aarch64.yml | 8 | ||||
| -rw-r--r-- | .builds/debian-stable-amd64.yml | 10 | ||||
| -rw-r--r-- | .builds/freebsd-latest-amd64.yml | 16 | ||||
| -rw-r--r-- | .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: | |||
| 18 | mv ~/zig-linux-* ~/zig-master | 18 | mv ~/zig-linux-* ~/zig-master |
| 19 | echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv | 19 | echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv |
| 20 | 20 | ||
| 21 | - test: | | 21 | - test_in_memory: | |
| 22 | cd zig-sqlite | 22 | cd zig-sqlite |
| 23 | TERM=dumb zig build test | 23 | TERM=dumb zig build test -Din_memory=true |
| 24 | 24 | ||
| 25 | - test_in_memory: | | 25 | - test_filesystem: | |
| 26 | cd zig-sqlite | ||
| 27 | TERM=dumb zig build test -Din_memory=false | ||
| 28 | |||
| 29 | - test_in_memory_with_bundled_library: | | ||
| 26 | cd zig-sqlite | 30 | cd zig-sqlite |
| 27 | TERM=dumb zig build test -Din_memory | 31 | TERM=dumb zig build test -Din_memory=true -Duse_bundled |
| 28 | 32 | ||
| 29 | - test_with_bundled_library: | | 33 | - test_filesystem_with_bundled_library: | |
| 30 | cd zig-sqlite | 34 | cd zig-sqlite |
| 31 | TERM=dumb zig build test -Din_memory -Duse_bundled \ No newline at end of file | 35 | 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: | |||
| 17 | mv ~/zig-linux-* ~/zig-master | 17 | mv ~/zig-linux-* ~/zig-master |
| 18 | echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv | 18 | echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv |
| 19 | 19 | ||
| 20 | - test: | | 20 | - test_filesystem: | |
| 21 | cd zig-sqlite | 21 | cd zig-sqlite |
| 22 | TERM=dumb zig build test | 22 | TERM=dumb zig build test -Din_memory=false |
| 23 | |||
| 24 | - test_filesystem_with_bundled_library: | | ||
| 25 | cd zig-sqlite | ||
| 26 | 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: | |||
| 17 | mv ~/zig-linux-* ~/zig-master | 17 | mv ~/zig-linux-* ~/zig-master |
| 18 | echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv | 18 | echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv |
| 19 | 19 | ||
| 20 | - test: | | 20 | - test_in_memory: | |
| 21 | cd zig-sqlite | 21 | cd zig-sqlite |
| 22 | TERM=dumb zig build test | 22 | TERM=dumb zig build test -Din_memory=true |
| 23 | 23 | ||
| 24 | - test_in_memory: | | 24 | - test_filesystem: | |
| 25 | cd zig-sqlite | 25 | cd zig-sqlite |
| 26 | TERM=dumb zig build test -Din_memory | 26 | TERM=dumb zig build test -Din_memory=false |
| 27 | 27 | ||
| 28 | # TODO(vincent): This fails with Debian for some reason | 28 | # TODO(vincent): This fails with Debian for some reason |
| 29 | # | 29 | # |
| 30 | # - test_with_bundled_library: | | 30 | # - test_with_bundled_library: | |
| 31 | # cd zig-sqlite | 31 | # cd zig-sqlite |
| 32 | # TERM=dumb zig build test -Din_memory -Duse_bundled \ No newline at end of file | 32 | # 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: | |||
| 17 | mv ~/zig-freebsd-* ~/zig-master | 17 | mv ~/zig-freebsd-* ~/zig-master |
| 18 | echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv | 18 | echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv |
| 19 | 19 | ||
| 20 | - test: | | 20 | - test_in_memory: | |
| 21 | cd zig-sqlite | 21 | cd zig-sqlite |
| 22 | TERM=dumb zig build test | 22 | TERM=dumb zig build test -Din_memory=true |
| 23 | 23 | ||
| 24 | - test_in_memory: | | 24 | - test_filesystem: | |
| 25 | cd zig-sqlite | ||
| 26 | TERM=dumb zig build test -Din_memory=false | ||
| 27 | |||
| 28 | - test_in_memory_with_bundled_library: | | ||
| 25 | cd zig-sqlite | 29 | cd zig-sqlite |
| 26 | TERM=dumb zig build test -Din_memory | 30 | TERM=dumb zig build test -Din_memory=true -Duse_bundled |
| 27 | 31 | ||
| 28 | - test_with_bundled_library: | | 32 | - test_filesystem_with_bundled_library: | |
| 29 | cd zig-sqlite | 33 | cd zig-sqlite |
| 30 | TERM=dumb zig build test -Din_memory -Duse_bundled \ No newline at end of file | 34 | 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: | |||
| 27 | run: zig build | 27 | run: zig build |
| 28 | 28 | ||
| 29 | - name: Run Tests with filesystem | 29 | - name: Run Tests with filesystem |
| 30 | run: zig build test | 30 | run: zig build test -Din_memory=false |
| 31 | 31 | ||
| 32 | - name: Run Tests in memory | 32 | - name: Run Tests in memory |
| 33 | run: zig build test | 33 | run: zig build test -Din_memory=true |