gitlab/ci: moving test install script to dependent job in pipeline
@@ -5,23 +5,24 @@ before_script:
- apt-get -qq update
- apt-get -qq install -y --no-install-recommends automake autoconf gcc g++ gcovr make valgrind time curl
-variables:
- LD_LIBRARY_PATH: /usr/local/lib
-
-# build and install from scratch
-install:
+# build from scratch
+compile:
stage: build
script:
- ./bootstrap.sh
- ./configure --enable-strict
- make -j4
+ artifacts: # save output objects for test stages
+ paths: [makefile, configure, config.h, config.h.in]
+
+# test installation and linking appropriately
+install:
+ stage: test
+ script:
+ - make -j4
- make install
- - echo $LD_LIBRARY_PATH
- - ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012
- ldconfig
- make check-link
- artifacts: # save output objects for test stages
- paths: [makefile, configure, config.h, config.h.in]
# run all test programs
check:
