From 831183e2cbab7ebf42bf4cace86f7bf9db482ed1 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Wed, 9 Nov 2016 16:35:28 +0100 Subject: [PATCH] centos build config --- .travis.yml | 1 + doc/building | 3 +++ doc/running | 3 +++ scripts/docker/centos-build-latest/Dockerfile | 18 ++++++++++++++++++ 4 files changed, 25 insertions(+) create mode 100644 scripts/docker/centos-build-latest/Dockerfile diff --git a/.travis.yml b/.travis.yml index 0c959b5..795a88e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ matrix: - env: IMAGE=debian-build-testing TARGETS=test - env: IMAGE=ubuntu-build-latest TARGETS=test - env: IMAGE=ubuntu-build-testing TARGETS=test + - env: IMAGE=centos-build-latest TARGETS=test script: - bash scripts/docker/exec.bash diff --git a/doc/building b/doc/building index d16e284..43b5cb9 100644 --- a/doc/building +++ b/doc/building @@ -11,6 +11,9 @@ debian: apt-get install libglew-dev libglm-dev libsdl2-dev libsdl2-image-dev lib debian (jessie): apt-get install libglew-dev libglm-dev libsdl2-dev libsdl2-image-dev libsdl2-net-dev libsdl2-ttf-dev libopenal-dev libalut-dev zlib1g-dev libcppunit-dev (!) you may have to build the tests with CPPFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 +centos (7): yum install glew-devel glm-devel SDL2-devel SDL2_image-devel SDL2_net-devel SDL2_ttf-devel openal-soft-devel freealut-devel zlib-devel cppunit-devel + (!) you need the "epel" repository for SDL2 et al. `yum install epel-release` + manual: CppUnit http://sourceforge.net/projects/cppunit/ GLEW http://glew.sourceforge.net/ diff --git a/doc/running b/doc/running index 5d8db59..7c54d44 100644 --- a/doc/running +++ b/doc/running @@ -9,6 +9,9 @@ archlinux: debian (jessie): apt install --no-install-recommends libglew1.10 libglu1-mesa libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-net-2.0-0 libsdl2-ttf-2.0-0 libopenal1 libalut0 zlib1g +centos (7): + yum install glew SDL2 SDL2_image SDL2_net SDL2_ttf openal-soft freealut zlib + Arguments ========= diff --git a/scripts/docker/centos-build-latest/Dockerfile b/scripts/docker/centos-build-latest/Dockerfile new file mode 100644 index 0000000..6118d6e --- /dev/null +++ b/scripts/docker/centos-build-latest/Dockerfile @@ -0,0 +1,18 @@ +FROM centos:latest + +RUN yum -y update \ + && yum -y install epel-release \ + && yum -y update \ + && yum -y group install "Development Tools" +RUN yum -y install \ + cppunit-devel \ + freealut-devel \ + glew-devel \ + glm-devel \ + openal-soft-devel \ + SDL2-devel \ + SDL2_image-devel \ + SDL2_net-devel \ + SDL2_ttf-devel \ + zlib-devel \ + ; -- 2.39.2