diff options
author | Davide Beatrici <git@davidebeatrici.dev> | 2020-06-09 09:03:19 +0300 |
---|---|---|
committer | Davide Beatrici <git@davidebeatrici.dev> | 2020-07-12 00:33:25 +0300 |
commit | 0b26fc7d3d78034512acc4655009f54ba086150a (patch) | |
tree | 7c27829413e322791dcf5806c484ea351f549b5f /.cirrus.yml | |
parent | 5c735e186bbc8e811ef82f895193b99645749b10 (diff) |
CI: Build with CMake
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 5fb85b82d..96efbd3a3 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -2,10 +2,18 @@ freebsd_instance: image: freebsd-12-1-release-amd64 freebsd_task: - update_script: pkg update && pkg upgrade -y - install_script: pkg install -y git pkgconf gmake qt5-qmake qt5-l10n qt5-buildtools qt5-linguisttools qt5-testlib qt5-core qt5-gui qt5-network qt5-sql qt5-svg qt5-widgets qt5-xml qt5-concurrent boost-libs opus libsndfile protobuf ice avahi-libdns speech-dispatcher python + pkg_script: + - pkg update && pkg upgrade -y + - pkg install -y git ninja pkgconf cmake qt5-buildtools qt5-qmake qt5-linguisttools qt5-concurrent qt5-network qt5-xml qt5-sql qt5-svg qt5-testlib boost-libs libsndfile protobuf ice avahi-libdns fetch_submodules_script: git submodule --quiet update --init --recursive build_script: - - qmake -recursive CONFIG+="release tests warnings-as-errors no-alsa no-jackaudio no-pulseaudio" - - gmake -j $(sysctl -n hw.ncpu) - check_script: gmake check + - mkdir build && cd build + # We disable translations because of a critical issue in "lupdate": it's very slow and keeps CPU usage at 100%. + - cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -Dsymbols=ON -Dtranslations=OFF .. + - cmake --build . + test_script: + - cd build + - ctest + install_script: + - cd build + - cmake --install . |