diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0553a5ff..5bab84bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: debian +image: ${SYSREPO_CICD_IMAGE} variables: GIT_SUBMODULE_STRATEGY: recursive @@ -7,20 +7,6 @@ stages: - build - test -# install libraries -before_script: - - apt-get update - - apt-get -y install clang cmake git libpcre2-dev libcmocka0 libcmocka-dev valgrind libnl-3-200 libnl-3-dev libnl-genl-3-dev libnl-nf-3-dev - - apt-get -y install python3 python3-pip - - git clone https://github.com/CESNET/libyang.git - - git clone https://github.com/sysrepo/sysrepo.git - - git clone https://github.com/telekom/sysrepo-plugins-common.git - - cd libyang; git checkout devel; mkdir build; cd build; cmake .. -DCMAKE_C_COMPILER=clang; make -j install; cd ../../ - - cd sysrepo; git checkout devel; mkdir build; cd build; cmake .. -DCMAKE_C_COMPILER=clang; make -j install; cd ../../ - - cd sysrepo-plugins-common; git submodule init; git submodule update; mkdir build; cd build; cmake .. -DCMAKE_C_COMPILER=clang; make -j install; cd ../.. - - pip3 install libyang - - pip3 install Jinja2 - build:default: stage: build