mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
eebc8c653b
* Reform source with clang-format. Rules applied with: $ find . -iname *.h -o -iname *.cc | xargs clang-format \ -style=file -i -fallback-style=google * Add clang-format and analyze to build. Based on the excellent work at: https://github.com/ttroy50/cmake-examples * Clean up CMake stuff on macOS. * Remove vim/emacs modelines. * Update copyright dates. * Build fixes. * Build fixes. * Build fixes. * Build fixes. * Build fixes. * Build fixes.
77 lines
1.9 KiB
YAML
77 lines
1.9 KiB
YAML
language: cpp
|
|
dist: trusty
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- llvm-toolchain-trusty-5.0
|
|
packages:
|
|
- g++-7
|
|
- cmake
|
|
- libxdamage-dev
|
|
- libx11-dev
|
|
- libxft-dev
|
|
- libxext-dev
|
|
- libglib2.0-dev
|
|
- libxml2-dev
|
|
- libcurl4-gnutls-dev
|
|
- liblua5.1-0-dev
|
|
- libtolua++5.1-dev
|
|
- libcairo2-dev
|
|
- libimlib2-dev
|
|
- libxinerama-dev
|
|
- gawk
|
|
- clang-5.0
|
|
- clang-format-5.0
|
|
env:
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
|
- os: linux
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- llvm-toolchain-trusty-5.0
|
|
packages:
|
|
- cmake
|
|
- libxdamage-dev
|
|
- libx11-dev
|
|
- libxft-dev
|
|
- libxext-dev
|
|
- libglib2.0-dev
|
|
- libxml2-dev
|
|
- libcurl4-gnutls-dev
|
|
- liblua5.1-0-dev
|
|
- libtolua++5.1-dev
|
|
- libcairo2-dev
|
|
- libimlib2-dev
|
|
- libxinerama-dev
|
|
- gawk
|
|
- clang-5.0
|
|
- clang-format-5.0
|
|
env:
|
|
- MATRIX_EVAL="CC=clang && CXX=clang++"
|
|
before_install:
|
|
- eval "${MATRIX_EVAL}"
|
|
before_script:
|
|
- mkdir build
|
|
- cd build
|
|
- scan-build --use-cc=$CC --use-c++=$CXX -o scanbuildout cmake -DCHECK_CODE_FORMAT=ON ..
|
|
- travis_wait 30 make format-check
|
|
- cd ..
|
|
- mkdir build-no-x11
|
|
- cd build-no-x11
|
|
- scan-build --use-cc=$CC --use-c++=$CXX -o scanbuildout cmake -DCHECK_CODE_FORMAT=ON -DBUILD_X11=OFF ..
|
|
- cd ..
|
|
script:
|
|
- cd build
|
|
- scan-build --use-cc=$CC --use-c++=$CXX -o scanbuildout make -j4
|
|
- cd ../build-no-x11
|
|
- scan-build --use-cc=$CC --use-c++=$CXX -o scanbuildout make -j4
|
|
branches:
|
|
only:
|
|
- master
|
|
sudo: false
|