summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci/test-msys2.sh
blob: 65fa6825eeda6ddccc874dee92807a230f48ad0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e

date
pacman --noconfirm -S --needed \
    base-devel \
    mingw-w64-x86_64-toolchain \
    mingw-w64-x86_64-bzip2 \
    mingw-w64-x86_64-nettle \
    mingw-w64-x86_64-sqlite3 \
    mingw-w64-x86_64-capnproto \
    mingw-w64-x86_64-clang
# ^^ It's worth noting that for Rust < 1.40, bindgen has problem picking up
# correct libclang. This is tested and working for clang 9 but if that
# stops for any reason (newer versions), we'd need to download a specific
# version from repo.msys2.org/mingw/x86_64/ and install it manually.

clang --version

date
# Ensure everything compiles but leave FFI tests for now
cargo check --all --all-targets
cargo test -v \
    -p buffered-reader \
    -p sequoia-ipc \
    -p sequoia-openpgp \
    -p sequoia-sqv \
    -p sequoia-autocrypt \
    -p sequoia-core \
    -p sequoia-net \
    -p sequoia-store
#   -p sequoia-ffi \
#   -p sequoia-openpgp-ffi \