-
Notifications
You must be signed in to change notification settings - Fork 13
/
lgtm.yml
26 lines (26 loc) · 946 Bytes
/
lgtm.yml
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
extraction:
cpp:
prepare: # Customizable step used by all languages.
packages:
- python-pip
- pkg-config
- ninja-build
- libcurl4-gnutls-dev
- wget
after_prepare: # Customizable step used by all languages.
- DEPS_DIR="$HOME/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- CMAKE_URL="https://cmake.org/files/v3.14/cmake-3.14.3-Linux-x86_64.tar.gz"
- mkdir cmake && wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
- export PATH=${DEPS_DIR}/cmake/bin:${PATH}
- cd -
- cmake --version
configure:
command:
- mkdir $LGTM_SRC/_lgtm_build_dir
- cd $LGTM_SRC/_lgtm_build_dir
- cmake -GNinja -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_BUILD_TYPE=Release ../
index:
build_command:
- cd $LGTM_SRC/_lgtm_build_dir
- cmake --build . --config Release