1include: 2 - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml' 3 4default: 5 tags: 6 - docker 7 # Image from https://hub.docker.com/_/gcc/ based on Debian 8 image: gcc:9 9 10whitespace: 11 stage: test 12 script: 13 - git diff-tree --check origin/master HEAD 14 15autoconf: 16 stage: build 17 before_script: 18 - apt-get update && 19 apt-get install -y zip doxygen 20 script: 21 - ./autogen.sh 22 - ./configure 23 - make -j4 24 - make distcheck 25 cache: 26 paths: 27 - "src/*.o" 28 - "src/.libs/*.o" 29 - "silk/*.o" 30 - "silk/.libs/*.o" 31 - "celt/*.o" 32 - "celt/.libs/*.o" 33 34cmake: 35 stage: build 36 before_script: 37 - apt-get update && 38 apt-get install -y cmake ninja-build 39 script: 40 - mkdir build 41 - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DOPUS_BUILD_TESTING=ON -DOPUS_BUILD_PROGRAMS=ON 42 - cmake --build build 43 - cd build && ctest --output-on-failure 44 45meson: 46 stage: build 47 before_script: 48 - apt-get update && 49 apt-get install -y python3-pip ninja-build doxygen 50 - export XDG_CACHE_HOME=$PWD/pip-cache 51 - pip3 install --user meson 52 script: 53 - export PATH=$PATH:$HOME/.local/bin 54 - mkdir builddir 55 - meson setup --werror -Dtests=enabled -Ddocs=enabled -Dbuildtype=release builddir 56 - meson compile -C builddir 57 - meson test -C builddir 58 #- meson dist --no-tests -C builddir 59 cache: 60 paths: 61 - 'pip-cache/*' 62