swh:1:snp:16d2b11bd5fcd8bceff35e0c334e275fcddade5b
Raw File
Tip revision: d2b4078ce9adaf6d95eaf903d34b2adba356d7e4 authored by Tamas Nepusz on 06 May 2022, 20:39:09 UTC
fix: more rigorous memory cleanup in plfit_continuous() and plfit_discrete()
Tip revision: d2b4078
.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