summaryrefslogtreecommitdiff
path: root/.lgtm.yml
blob: 2619c647d4aa2d9a8325325f47510935e3fc4ffc (plain)
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
extraction:
  cpp:
    prepare:
      packages:
        - libgl-dev
        - libglu-dev
        - libpcre2-dev
        - libz-dev
        - libfreetype6-dev
        - libpng-dev
        - libjpeg-dev
        - libsqlite3-dev
    after_prepare:
      - mkdir $HOME/cmake-3.17 \
          \ && wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.3-Linux-x86_64.tar.gz" \
            \ | tar -xzf - --strip-components=1 -C $HOME/cmake-3.17
      - export PATH=$HOME/cmake-3.17/bin:$PATH

    # Pre-analysis step.
    configure:
      command:
        - "./configure -cmake -opensource -confirm-license -debug -no-pch \
          \ -nomake tests -nomake examples -no-harfbuzz \
          \ -system-pcre -system-zlib -system-freetype -system-libpng \
          \ -system-libjpeg -system-sqlite"
        # We skip analyzing the bootstrap library, since the same code is
        # built with non-standard flags and false-positives are flagged.
        - ninja bootstrap_tools

    # Actual analysis.
    index:
      build_command:
        - ninja