HomePhabricator

[SECP256K1] Add support for Cirrus CI

Description

[SECP256K1] Add support for Cirrus CI

Summary:
Switch from Travis to Cirrus as a CI for libsecp256k1.

Backport of secp256k1#864

The files have been adapted to match our codebase:

  • The build_autotools.sh and build_cmake.sh scripts are reused from the Travis setup.
  • The nixos base file is removed since it would build openjdk from source for i686 and time out. This is not a good move but these files will be removed in a follow-up diff anyway, so not a big deal.
  • Skip JNI tests on macOS, since Java is not installed on Cirrus macOS VM.
  • Work around valgrind install path not being searched by CMake. This is a known CMake issue (/usr/local/include should be part of the system search path for headers): https://gitlab.kitware.com/cmake/cmake/-/issues/19120
  • Increase the timeouts, since we are running each test twice the valgrind task will not complete in 1h on macOS.

Test Plan:
See result from my own repo:
https://cirrus-ci.com/build/6029790437179392

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D9397

Details

Provenance
Tim Ruffing <crypto@timruffing.de>Authored on Dec 22 2020, 15:42
FabienCommitted on Apr 13 2021, 18:15
FabienPushed on Apr 13 2021, 18:15
Reviewer
Restricted Project
Differential Revision
D9397: [SECP256K1] Add support for Cirrus CI
Parents
rABC90e09af3d859: [Cashtab] Batch utxo requests to hydrateUtxos
Branches
Unknown
Tags
Unknown