CI: move the configure flags into a variable
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 15 Nov 2019 04:32:07 +0000 (14:32 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 15 Nov 2019 04:40:56 +0000 (14:40 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml

index c44f4c9a8510200816c8a102d4fd2b5a9c1afe79..eb611c309d4f2e5542690f720836df78c586fb35 100644 (file)
@@ -83,7 +83,7 @@ variables:
 .default_build: &default_build
   script:
     - autoreconf -ivf
-    - ./configure --disable-silent-rules
+    - ./configure --disable-silent-rules $CONFIGURE_FLAGS
     - make
     - make check
   <<: *default_artifacts
@@ -91,7 +91,7 @@ variables:
 .default_build_distcheck: &default_build_distcheck
   script:
     - autoreconf -ivf
-    - ./configure --disable-silent-rules
+    - ./configure --disable-silent-rules $CONFIGURE_FLAGS
     - make
     - make check
     - make distcheck
@@ -500,10 +500,6 @@ centos:7@no-nm:
 
 centos:7@enable-gcov:
   extends: .centos-custom-build@template
-  script:
-    - autoreconf -ivf
-    - ./configure --disable-silent-rules --enable-gcov
-    - make
-    - make check
-    - make distcheck
   <<: *default_artifacts
+  variables:
+    CONFIGURE_FLAGS: "--enable-gcov"