File: .travis.yml

package info (click to toggle)
raft 0.22.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,504 kB
  • sloc: ansic: 37,539; makefile: 264; sh: 77; python: 22
file content (45 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: c
addons:
  apt:
    packages:
    - lcov
    - linux-libc-dev
    - libuv1-dev
    - btrfs-progs
    - xfsprogs
    - zfsutils-linux

jobs:
  include:
  - if: type != pull_request
    compiler: gcc
    dist: bionic
    arch: s390x

  - if: type == pull_request
    compiler: gcc
    dist: bionic
    arch: arm64

  - if: type != pull_request
    compiler: clang
    dist: bionic
    arch: ppc64le

before_script:
  - git clone --depth 1 https://github.com/edlund/amalgamate.git
  - export PATH=$PATH:$PWD/amalgamate

script:
  - autoreconf -i
  - |
    if [ $TRAVIS_CPU_ARCH = "s390x" ] || [ $TRAVIS_CPU_ARCH = "arm64" ]; then
      ./configure --enable-example --enable-debug
    else
      ./configure --enable-example --enable-debug --enable-sanitize
    fi
  - amalgamate.py --config=amalgamation.json --source=$(pwd)
  - $CC raft.c -c -D_GNU_SOURCE -DHAVE_LINUX_AIO_ABI_H -Wall -Wextra -Wpedantic -fpic
  - ./test/lib/fs.sh setup
  - make check $(./test/lib/fs.sh detect) || (cat ./test-suite.log && false)
  - ./test/lib/fs.sh teardown