]> git.jsancho.org Git - lugaru.git/commitdiff
CI: Enable CentOS Continuous Release (CR) repository for oldgcc target
authorNeal Gompa <ngompa13@gmail.com>
Sat, 2 Sep 2017 13:45:43 +0000 (09:45 -0400)
committerNeal Gompa <ngompa13@gmail.com>
Sat, 2 Sep 2017 13:53:54 +0000 (09:53 -0400)
With things in flux between CentOS and EPEL while CentOS 7.4 is
prepared, the CR repository will ensure dependencies can be found for
EPEL.

Since EPEL targets Red Hat Enterprise Linux specifically, EPEL for
RHEL 7 has already moved onto RHEL 7.4, but CentOS 7.4 hasn't been
released yet.

.gitlab-ci.yml

index 78b2dfe598979535f23573fed071ed221ea92a88..728cd033909f85c3294fa1db073ee6f2db6f617e 100644 (file)
@@ -8,6 +8,7 @@ cache:
 variables:
   YUMDNF: dnf
   EXTRA_REPO_INST_COMMAND: /bin/true
+  EXTRA_REPO_CONFIGURE_COMMAND: /bin/true
   JPEG_PACKAGE: "pkgconfig(libjpeg)"
   CMAKE_PACKAGE: "/usr/bin/cmake"
   DEPENDENCY_PACKAGES: "pkgconfig(openal) pkgconfig(sdl2) pkgconfig(glu) pkgconfig(libpng) pkgconfig(vorbis) pkgconfig(vorbisfile) pkgconfig(ogg)"
@@ -15,13 +16,15 @@ variables:
 
 before_script:
   - $EXTRA_REPO_INST_COMMAND
+  - $EXTRA_REPO_CONFIGURE_COMMAND
   - $YUMDNF --quiet --assumeyes install $COMMON_PACKAGES
 
 build_oldgcc:
   image: centos:7
   variables:
     YUMDNF: yum
-    EXTRA_REPO_INST_COMMAND: "yum --quiet --assumeyes install epel-release"
+    EXTRA_REPO_INST_COMMAND: "yum --quiet --assumeyes install epel-release yum-utils"
+    EXTRA_REPO_CONFIGURE_COMMAND: "yum-config-manager --enable cr"
     JPEG_PACKAGE: "libjpeg-devel"
     CMAKE_PACKAGE: "/usr/bin/cmake3"
     COMPILER_PACKAGES: "gcc gcc-c++"