1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-30 05:59:07 +00:00

travisCI for macOS (#524)

* add TravisCI for macOS

* Delete these spaces

* Attempt to fix trailing spaces
This commit is contained in:
npyl 2018-06-19 15:07:44 +03:00 committed by Brenden Matthews
parent 623fb83379
commit 79321355f5

View File

@ -1,8 +1,8 @@
language: cpp language: cpp
dist: trusty
matrix: matrix:
include: include:
- os: linux - os: linux
dist: trusty
addons: addons:
apt: apt:
sources: sources:
@ -42,6 +42,7 @@ matrix:
env: env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" - MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- os: linux - os: linux
dist: trusty
addons: addons:
apt: apt:
sources: sources:
@ -85,53 +86,71 @@ matrix:
secure: "KikPusy+HXcEVLr0Dqb6mkrefDU5jm7EGQ5fwO4sBG7bRMcnHV3V14s5yB4Ol8btpUC0nkNn/41+f37lkG+oT4y9ZeIH2ZrhsSEHxOgH6DF9ZSVJwtpLrF9siWgfZ0m5c5V7U5rzVYL3jlO1hQfXKCfMNAcwlKcEUrfpk7jVEZc=" secure: "KikPusy+HXcEVLr0Dqb6mkrefDU5jm7EGQ5fwO4sBG7bRMcnHV3V14s5yB4Ol8btpUC0nkNn/41+f37lkG+oT4y9ZeIH2ZrhsSEHxOgH6DF9ZSVJwtpLrF9siWgfZ0m5c5V7U5rzVYL3jlO1hQfXKCfMNAcwlKcEUrfpk7jVEZc="
env: env:
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0" - MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
- os: osx
osx_image: xcode9.4
before_install: before_install:
- eval "${MATRIX_EVAL}" - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then eval "${MATRIX_EVAL}" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install freetype gettext lua imlib2 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link gettext --force ; fi
before_script: before_script:
- mkdir build && cd build - |
- > if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cmake mkdir build && cd build
-DBUILD_MYSQL=ON
-DBUILD_LUA_CAIRO=ON cmake \
-DBUILD_LUA_IMLIB2=ON -DBUILD_MYSQL=ON \
-DBUILD_LUA_RSVG=ON -DBUILD_LUA_CAIRO=ON \
-DBUILD_LUA_CAIRO=ON -DBUILD_LUA_IMLIB2=ON \
-DBUILD_AUDACIOUS=ON -DBUILD_LUA_RSVG=ON \
-DBUILD_XMMS2=ON -DBUILD_LUA_CAIRO=ON \
-DBUILD_ICAL=ON -DBUILD_AUDACIOUS=ON \
-DBUILD_IRC=ON -DBUILD_XMMS2=ON \
-DBUILD_HTTP=ON -DBUILD_ICAL=ON \
-DBUILD_ICONV=ON -DBUILD_IRC=ON \
-DBUILD_PULSEAUDIO=ON -DBUILD_HTTP=ON \
-DBUILD_JOURNAL=ON -DBUILD_ICONV=ON \
-DBUILD_RSS=ON -DBUILD_PULSEAUDIO=ON \
.. -DBUILD_JOURNAL=ON \
- cd .. -DBUILD_RSS=ON \
- mkdir build-no-x11 ..
- cd build-no-x11 cd ..
- > mkdir build-no-x11
cmake cd build-no-x11
-DBUILD_X11=OFF
-DBUILD_MYSQL=ON cmake \
-DBUILD_LUA_CAIRO=ON -DBUILD_X11=OFF \
-DBUILD_LUA_IMLIB2=ON -DBUILD_MYSQL=ON \
-DBUILD_LUA_RSVG=ON -DBUILD_LUA_CAIRO=ON \
-DBUILD_LUA_CAIRO=ON -DBUILD_LUA_IMLIB2=ON \
-DBUILD_AUDACIOUS=ON -DBUILD_LUA_RSVG=ON \
-DBUILD_XMMS2=ON -DBUILD_LUA_CAIRO=ON \
-DBUILD_ICAL=ON -DBUILD_AUDACIOUS=ON \
-DBUILD_IRC=ON -DBUILD_XMMS2=ON \
-DBUILD_HTTP=ON -DBUILD_ICAL=ON \
-DBUILD_ICONV=ON -DBUILD_IRC=ON \
-DBUILD_PULSEAUDIO=ON -DBUILD_HTTP=ON \
-DBUILD_JOURNAL=ON -DBUILD_ICONV=ON \
-DBUILD_RSS=ON -DBUILD_PULSEAUDIO=ON \
.. -DBUILD_JOURNAL=ON \
- cd .. -DBUILD_RSS=ON \
..
cd ..
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
mkdir build && cd build
cmake ..
cd ..
mkdir build-no-x11
cd build-no-x11
cmake -DBUILD_X11=OFF ..
cd ..
fi
script: script:
- cd build - cd build
- if [ "$CXX" = "clang++-6.0" ] ; then build-wrapper-linux-x86-64 --out-dir bw-output make -j4 ; fi - if [ "$CXX" = "clang++-6.0" ] ; then build-wrapper-linux-x86-64 --out-dir bw-output make -j4 ; fi
- if [ "$CXX" = "g++-8" ] ; then make -j4 ; fi - if [ "$CXX" = "g++-8" ] ; then make -j4 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make -j4 ; fi
- cd ../build-no-x11 - cd ../build-no-x11
- make -j4 - make -j4
- cd .. - cd ..