2019-02-24 20:31:46 +00:00
|
|
|
---
|
2012-12-26 00:57:10 +00:00
|
|
|
language: cpp
|
2018-05-12 16:03:00 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-04-14 17:51:25 +00:00
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-xenial-8
|
|
|
|
packages:
|
|
|
|
- clang-8
|
|
|
|
- llvm-8
|
|
|
|
- lld-8
|
|
|
|
- libc++-8-dev
|
|
|
|
- libc++abi-8-dev
|
|
|
|
- lcov
|
|
|
|
- cmake
|
|
|
|
- docbook2x
|
|
|
|
- libxdamage-dev
|
|
|
|
- libx11-dev
|
|
|
|
- libxft-dev
|
|
|
|
- libxext-dev
|
|
|
|
- libglib2.0-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- liblua5.3-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libimlib2-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libmysqlclient-dev
|
|
|
|
- libical-dev
|
|
|
|
- libircclient-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libmicrohttpd-dev
|
|
|
|
- ncurses-dev
|
|
|
|
- librsvg2-dev
|
|
|
|
- libaudclient-dev
|
|
|
|
- libxmmsclient-dev
|
|
|
|
- libpulse-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- audacious-dev
|
|
|
|
- libsystemd-dev
|
|
|
|
- libxnvctrl-dev
|
|
|
|
- libircclient-dev
|
|
|
|
- gawk
|
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=clang-8 && CXX=clang++-8"
|
2019-02-23 22:13:33 +00:00
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-xenial-7
|
|
|
|
packages:
|
|
|
|
- clang-7
|
|
|
|
- llvm-7
|
|
|
|
- lld-7
|
|
|
|
- libc++-7-dev
|
|
|
|
- libc++abi-7-dev
|
|
|
|
- lcov
|
|
|
|
- cmake
|
|
|
|
- docbook2x
|
|
|
|
- libxdamage-dev
|
|
|
|
- libx11-dev
|
|
|
|
- libxft-dev
|
|
|
|
- libxext-dev
|
|
|
|
- libglib2.0-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- liblua5.3-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libimlib2-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libmysqlclient-dev
|
|
|
|
- libical-dev
|
|
|
|
- libircclient-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libmicrohttpd-dev
|
|
|
|
- ncurses-dev
|
|
|
|
- librsvg2-dev
|
|
|
|
- libaudclient-dev
|
|
|
|
- libxmmsclient-dev
|
|
|
|
- libpulse-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- audacious-dev
|
|
|
|
- libsystemd-dev
|
|
|
|
- libxnvctrl-dev
|
|
|
|
- libircclient-dev
|
|
|
|
- gawk
|
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=clang-7 && CXX=clang++-7"
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-5
|
|
|
|
- cmake
|
|
|
|
- docbook2x
|
|
|
|
- libxdamage-dev
|
|
|
|
- libx11-dev
|
|
|
|
- libxft-dev
|
|
|
|
- libxext-dev
|
|
|
|
- libglib2.0-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- liblua5.3-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libimlib2-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libmysqlclient-dev
|
|
|
|
- libical-dev
|
|
|
|
- libircclient-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libmicrohttpd-dev
|
|
|
|
- ncurses-dev
|
|
|
|
- librsvg2-dev
|
|
|
|
- libaudclient-dev
|
|
|
|
- libxmmsclient-dev
|
|
|
|
- libpulse-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- audacious-dev
|
|
|
|
- libsystemd-dev
|
|
|
|
- libxnvctrl-dev
|
|
|
|
- libircclient-dev
|
|
|
|
- gawk
|
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-8
|
|
|
|
- cmake
|
|
|
|
- docbook2x
|
|
|
|
- libxdamage-dev
|
|
|
|
- libx11-dev
|
|
|
|
- libxft-dev
|
|
|
|
- libxext-dev
|
|
|
|
- libglib2.0-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- liblua5.3-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libimlib2-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libmysqlclient-dev
|
|
|
|
- libical-dev
|
|
|
|
- libircclient-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libmicrohttpd-dev
|
|
|
|
- ncurses-dev
|
|
|
|
- librsvg2-dev
|
|
|
|
- libaudclient-dev
|
|
|
|
- libxmmsclient-dev
|
|
|
|
- libpulse-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- audacious-dev
|
|
|
|
- libsystemd-dev
|
|
|
|
- libxnvctrl-dev
|
|
|
|
- libircclient-dev
|
|
|
|
- gawk
|
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode9.4
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode10.1
|
2018-05-12 16:03:00 +00:00
|
|
|
before_install:
|
2019-02-23 22:13:33 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then eval "${MATRIX_EVAL}" ; fi
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install freetype gettext lua imlib2 librsvg docbook2x lcov ;
|
|
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew link gettext --force ;
|
|
|
|
fi
|
2012-12-26 00:57:10 +00:00
|
|
|
before_script:
|
2019-02-23 22:13:33 +00:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
mkdir build && cd build
|
2018-06-19 12:07:44 +00:00
|
|
|
|
2019-02-23 22:13:33 +00:00
|
|
|
cmake \
|
|
|
|
-DMAINTAINER_MODE=ON \
|
2019-02-25 06:00:04 +00:00
|
|
|
-DBUILD_TESTS=ON \
|
2019-02-23 22:13:33 +00:00
|
|
|
-DBUILD_MYSQL=ON \
|
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
|
|
|
-DBUILD_LUA_RSVG=ON \
|
|
|
|
-DBUILD_LUA_CAIRO=ON \
|
|
|
|
-DBUILD_AUDACIOUS=ON \
|
|
|
|
-DBUILD_XMMS2=ON \
|
|
|
|
-DBUILD_ICAL=ON \
|
|
|
|
-DBUILD_IRC=ON \
|
|
|
|
-DBUILD_HTTP=ON \
|
|
|
|
-DBUILD_ICONV=ON \
|
|
|
|
-DBUILD_PULSEAUDIO=ON \
|
|
|
|
-DBUILD_JOURNAL=ON \
|
|
|
|
-DBUILD_RSS=ON \
|
|
|
|
-DBUILD_IRC=ON \
|
|
|
|
-DBUILD_NVIDIA=ON \
|
|
|
|
..
|
|
|
|
cd ..
|
|
|
|
mkdir build-no-x11
|
|
|
|
cd build-no-x11
|
2018-06-19 12:07:44 +00:00
|
|
|
|
2019-02-23 22:13:33 +00:00
|
|
|
cmake \
|
|
|
|
-DMAINTAINER_MODE=ON \
|
2019-02-25 06:00:04 +00:00
|
|
|
-DBUILD_TESTS=ON \
|
2019-02-23 22:13:33 +00:00
|
|
|
-DBUILD_X11=OFF \
|
|
|
|
-DBUILD_MYSQL=ON \
|
|
|
|
-DBUILD_LUA_CAIRO=ON \
|
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
|
|
|
-DBUILD_LUA_RSVG=ON \
|
|
|
|
-DBUILD_AUDACIOUS=ON \
|
|
|
|
-DBUILD_XMMS2=ON \
|
|
|
|
-DBUILD_ICAL=ON \
|
|
|
|
-DBUILD_IRC=ON \
|
|
|
|
-DBUILD_HTTP=ON \
|
|
|
|
-DBUILD_ICONV=ON \
|
|
|
|
-DBUILD_PULSEAUDIO=ON \
|
|
|
|
-DBUILD_JOURNAL=ON \
|
|
|
|
-DBUILD_RSS=ON \
|
|
|
|
-DBUILD_IRC=ON \
|
|
|
|
..
|
|
|
|
cd ..
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake \
|
|
|
|
-DMAINTAINER_MODE=ON \
|
2019-02-25 06:00:04 +00:00
|
|
|
-DBUILD_TESTS=ON \
|
2019-02-23 22:13:33 +00:00
|
|
|
-DBUILD_LUA_RSVG=ON \
|
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
|
|
|
..
|
|
|
|
cd ..
|
2018-06-19 12:07:44 +00:00
|
|
|
|
2019-02-23 22:13:33 +00:00
|
|
|
mkdir build-no-x11
|
|
|
|
cd build-no-x11
|
|
|
|
cmake \
|
|
|
|
-DMAINTAINER_MODE=ON \
|
2019-02-25 06:00:04 +00:00
|
|
|
-DBUILD_TESTS=ON \
|
2019-02-23 22:13:33 +00:00
|
|
|
-DBUILD_X11=OFF \
|
|
|
|
-DBUILD_X11=OFF \
|
|
|
|
-DBUILD_LUA_RSVG=ON \
|
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
|
|
|
..
|
|
|
|
cd ..
|
|
|
|
fi
|
2013-09-15 16:45:56 +00:00
|
|
|
script:
|
2019-02-23 22:13:33 +00:00
|
|
|
- cd build
|
2019-02-25 21:35:42 +00:00
|
|
|
- make -j4
|
2019-02-23 22:13:33 +00:00
|
|
|
- make test
|
|
|
|
- if [ "$CXX" = "clang++-7" ] ; then make test-conky-coverage-txt ; fi
|
|
|
|
- cd ../build-no-x11
|
|
|
|
- make -j4
|
2012-12-26 00:57:10 +00:00
|
|
|
branches:
|
|
|
|
only:
|
2019-02-23 22:13:33 +00:00
|
|
|
- master
|
|
|
|
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"
|
2019-01-09 00:34:46 +00:00
|
|
|
sudo: required
|
2018-05-13 14:58:09 +00:00
|
|
|
cache:
|
2019-02-23 22:13:33 +00:00
|
|
|
- directories:
|
|
|
|
- "$HOME/.sonar/cache"
|
2019-01-09 00:34:46 +00:00
|
|
|
before_deploy:
|
2019-06-23 14:50:35 +00:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2019-02-24 17:35:44 +00:00
|
|
|
- openssl aes-256-cbc -K $encrypted_38876355cb3e_key -iv $encrypted_38876355cb3e_iv
|
|
|
|
-in appimage/secret.gpg.enc -out appimage/secret.gpg -d
|
2019-02-23 22:13:33 +00:00
|
|
|
- "gpg --import appimage/secret.gpg"
|
|
|
|
- "./appimage/build.sh"
|
2019-02-23 00:05:27 +00:00
|
|
|
|
2019-01-09 00:34:46 +00:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
file_glob: true
|
|
|
|
file: conky*.AppImage
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2019-04-14 17:51:25 +00:00
|
|
|
condition: "$CXX = clang++-8"
|
2019-01-09 00:34:46 +00:00
|
|
|
api_key:
|
|
|
|
secure: YGmk5e9am7gwH1pKJVwjHPheaLrSxMIIa5iDvnto9KKaj9VDgsynzPFcwfP6my78qMszdpC7IsjpukpKFBpmifAZ7OQcpEDFp1d91kXcTEM9ILgu3j3kl/gr6nIkzqJO9VAwlYO5H3t5xlD6EZa36FGg0Nlvi2cCuNG7mEyVJy0=
|