1language: cpp
2os: linux
3dist: focal
4compiler: gcc
5
6jobs:
7  include:
8    - name: Linux ppc64le (GCC)
9      arch: ppc64le
10      env:
11       - TARGET="shared"
12
13    - name: Linux arm64 (GCC)
14      arch: arm64
15      env:
16       - TARGET="shared"
17
18    - name: Linux GCC 4.8
19      dist: bionic
20      env:
21       - TARGET="gcc4.8"
22       - EXTRA_FLAGS="--disable-werror"
23
24install:
25  - ./src/scripts/ci/setup_travis.sh
26
27script:
28  - ./src/scripts/ci_build.py --os=$TRAVIS_OS_NAME --cc=$CC --cc-bin=$CXX --without-pylint3 --pkcs11-lib=$PKCS11_LIB $EXTRA_FLAGS $TARGET
29
30# whitelist branches to avoid testing feature branches twice (as branch and as pull request)
31branches:
32  only:
33    - master
34    - release-2
35    - coverity_scan
36
37git:
38  depth: 10
39
40cache:
41  ccache: true
42
43addons:
44  coverity_scan:
45    project:
46      name: "randombit/botan"
47    notification_email: jack@randombit.net
48    build_command_prepend: "./configure.py --no-optimizations --with-zlib --with-openssl"
49    build_command: "make -j2"
50    branch_pattern: coverity_scan
51