swh:1:snp:406bc3eca7a1023d0c025409de8c15369a4fb6b9
Raw File
Tip revision: 6de5b1468c1851675105537673226fa2af4d9e68 authored by Tamas Nepusz on 09 September 2022, 09:32:21 UTC
fix: avoid allocations of zero-length blocks
Tip revision: 6de5b14
.travis.yml
language: c
cache: ccache
os: linux
dist: xenial

env:
  global:
    - CMAKE_BUILD_TYPE=Release  # use release build
    - CMAKE_GENERATOR=Ninja     # build with ninja instead of make
    - CTEST_PARALLEL_LEVEL=2    # run tests in parallel
    - PATH="/snap/bin:$PATH"    # needed in order to run the cmake installed with snap

addons:
  apt:
    packages:
      - ninja-build
      - git
      - colordiff
  snaps:
    - name: cmake
      confinement: classic

# configuration (running cmake) is in before_script
# if this phase fails, the build stops immediately
before_script:
  - mkdir build && cd build
  - cmake .. -DBUILD_SHARED_LIBS=ON -DUSE_SANITIZER=Address\;Undefined

# building and testing is in script
# use && to ensure that ctest is not run if the build failed
script:
  - cmake --build . && ctest --output-on-failure

jobs:
  include:
    - name: "Linux arm64"
      os: linux
      arch: arm64-graviton2 # faster than arm64

    - name: "Linux ppc64"
      os: linux
      arch: ppc64le
      # Do not enable ASAN; segfaults on this platform with an empty stack.
      before_script:
         - mkdir build && cd build
         - cmake .. -DBUILD_SHARED_LIBS=ON

    - name: "Linux s390x"
      os: linux
      arch: s390x
      # Do not enable ASAN; not supported on this platform.
      before_script:
         - mkdir build && cd build
         - cmake .. -DBUILD_SHARED_LIBS=ON

notifications:
  email:
    on_success: change
    on_failure: always
back to top