summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorIgor Matuszewski <igor@sequoia-pgp.org>2020-08-13 13:08:39 +0200
committerIgor Matuszewski <igor@sequoia-pgp.org>2020-08-13 15:19:59 +0200
commit4cce1847ec2da147add367051716e6a93596f427 (patch)
tree7511e53e2ef24bc6da89d2d0c7eac0a6a7940367 /.gitlab-ci
parent1c7a670d6e8eb55130b5c04d0e5625ddfc09a057 (diff)
ci: Temporarily test CNG instead of Nettle on windows-gnu
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/test-msys2.sh47
1 files changed, 28 insertions, 19 deletions
diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh
index 65fa6825..07bdf085 100644
--- a/.gitlab-ci/test-msys2.sh
+++ b/.gitlab-ci/test-msys2.sh
@@ -1,33 +1,42 @@
#!/bin/bash
set -e
+# TODO: Currently, the CI times out at 1hr when downloading mingw-w64 packages
+# (mainly Clang and LLVM). Until that's resolved, just test the
+# `sequoia_openpgp` crate using the CNG backend
+
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
+ 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
+# clang --version
+gcc --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 \
+cd openpgp
+# https://github.com/rust-lang/cargo/issues/5015
+cargo test --no-default-features --features crypto-cng,compression
+
+# # 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 \