blob: 01b033fda6f7b01a11b9297061395e5528a558cf [file] [log] [blame]
Tim-Philipp Müller794392e2020-12-22 23:54:36 +00001include:
2 - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
3
Ralph Gilesd1b5efe2020-04-21 09:19:56 -07004default:
5 tags:
6 - docker
7 # Image from https://hub.docker.com/_/gcc/ based on Debian
Ralph Giles982e83a2020-08-08 09:54:50 -07008 image: gcc:9
Ralph Gilesd1b5efe2020-04-21 09:19:56 -07009
Marcus Asteborg0c0c4842020-06-15 13:00:25 -070010whitespace:
11 stage: test
Marcus Asteborg0c0c4842020-06-15 13:00:25 -070012 script:
13 - git diff-tree --check origin/master HEAD
14
Ralph Gilesd1b5efe2020-04-21 09:19:56 -070015autoconf:
16 stage: build
17 before_script:
18 - apt-get update &&
19 apt-get install -y zip doxygen
20 script:
21 - ./autogen.sh
22 - ./configure
Tim-Philipp Müllerc2b542b2016-03-19 15:40:22 +000023 - make -j4
Ralph Gilesd1b5efe2020-04-21 09:19:56 -070024 - 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
Marcus Asteborgf0143172020-06-07 21:07:58 -070041 - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DOPUS_BUILD_TESTING=ON -DOPUS_BUILD_PROGRAMS=ON
Ralph Gilesd1b5efe2020-04-21 09:19:56 -070042 - cmake --build build
Marcus Asteborgf0143172020-06-07 21:07:58 -070043 - cd build && ctest --output-on-failure
Tim-Philipp Müllerc2b542b2016-03-19 15:40:22 +000044
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/*'