Skip to content

Commit

Permalink
TRAVIS: Simplify
Browse files Browse the repository at this point in the history
This only does a debian:testing build. Build matrix is limited
to speed up build, but should suffice.
  • Loading branch information
hasufell committed Mar 2, 2017
1 parent c9d882d commit d2959bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 105 deletions.
38 changes: 11 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,18 @@ sudo: required
services:
- docker

language: c

env:
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Gentoo" BUILD_FLAGS="--with-gtk3 --with-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Gentoo" BUILD_FLAGS="--with-gtk3 --without-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Gentoo" BUILD_FLAGS="--without-gtk3 --with-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Gentoo" BUILD_FLAGS="--without-gtk3 --without-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Gentoo" BUILD_FLAGS="--with-gtk3 --with-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Gentoo" BUILD_FLAGS="--with-gtk3 --without-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Gentoo" BUILD_FLAGS="--without-gtk3 --with-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Gentoo" BUILD_FLAGS="--without-gtk3 --without-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Debian" BUILD_FLAGS="--with-gtk3 --with-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Debian" BUILD_FLAGS="--with-gtk3 --without-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Debian" BUILD_FLAGS="--without-gtk3 --with-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Debian" BUILD_FLAGS="--without-gtk3 --without-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Debian" BUILD_FLAGS="--with-gtk3 --with-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Debian" BUILD_FLAGS="--with-gtk3 --without-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Debian" BUILD_FLAGS="--without-gtk3 --with-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Debian" BUILD_FLAGS="--without-gtk3 --without-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Ubuntu" BUILD_FLAGS="--with-gtk3 --with-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Ubuntu" BUILD_FLAGS="--with-gtk3 --without-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Ubuntu" BUILD_FLAGS="--without-gtk3 --with-libnotify"
- CC="clang" CFLAGS="-O2 -g -Wall -Wextra -Werror -Wno-incompatible-library-redeclaration -Wno-deprecated-declarations" OS="Ubuntu" BUILD_FLAGS="--without-gtk3 --without-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Ubuntu" BUILD_FLAGS="--with-gtk3 --with-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Ubuntu" BUILD_FLAGS="--with-gtk3 --without-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Ubuntu" BUILD_FLAGS="--without-gtk3 --with-libnotify"
- CC="gcc" CFLAGS="-O2 -g -Wall -Wextra -Werror -fno-builtin -Wno-deprecated-declarations" OS="Ubuntu" BUILD_FLAGS="--without-gtk3 --without-libnotify"
- CC=gcc WITH_GTK3=OFF WITH_LIBNOTIFY=OFF ENABLE_NLS=OFF CMAKE_GENERATOR="Ninja"
- CC=gcc WITH_GTK3=OFF WITH_LIBNOTIFY=ON ENABLE_NLS=ON CMAKE_GENERATOR="Unix Makefiles"
- CC=gcc WITH_GTK3=ON WITH_LIBNOTIFY=OFF ENABLE_NLS=OFF CMAKE_GENERATOR="Unix Makefiles"
- CC=gcc WITH_GTK3=ON WITH_LIBNOTIFY=ON ENABLE_NLS=ON CMAKE_GENERATOR="Ninja"
- CC=clang WITH_GTK3=ON WITH_LIBNOTIFY=ON ENABLE_NLS=ON CMAKE_GENERATOR="Ninja"

before_install: ./.travis/before_install.sh
before_install:
- docker pull debian:unstable

install: ./.travis/install.sh
script:
- docker run -ti -v "`pwd`":/pnmixer debian:unstable sh -c "apt-get update && apt-get install -y clang cmake doxygen gettext libasound2-dev libgtk-3-dev libgtk2.0-dev libnotify-dev ninja-build && cd /pnmixer && mkdir build && cd build && cmake -DWITH_GTK3=${WITH_GTK3} -DWITH_LIBNOTIFY=${WITH_LIBNOTIFY} -DENABLE_NLS=${ENABLE_NLS} -DBUILD_DOCUMENTATION=ON -G \"${CMAKE_GENERATOR}\" -DCMAKE_C_COMPILER=\"${CC}\" .. && if [ \"${CMAKE_GENERATOR}\" = \"Ninja\" ] ; then ninja && DESTDIR=`pwd`/install ninja install ; else make && make DESTDIR=`pwd`/install install ; fi"

script: ./.travis/script.sh
26 changes: 0 additions & 26 deletions .travis/before_install.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .travis/install.sh

This file was deleted.

34 changes: 0 additions & 34 deletions .travis/script.sh

This file was deleted.

0 comments on commit d2959bf

Please sign in to comment.