Commit c6c64a9e authored by Moritz Lipp's avatar Moritz Lipp

CI Integration

parent 2f418b2b
......@@ -6,3 +6,5 @@
build
compile_commands.json
.ycm_extra_conf.*
subprojects/girara
subprojects/zathura
stages:
- build
- test
# Cache
cache: &dependency_cache
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- subprojects/girara
- subprojects/zathura
# Archlinux
build:archlinux:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/archlinux:latest
script:
- mkdir -p build && cd build
- meson ..
- ninja
cache:
<<: *dependency_cache
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:archlinux:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/archlinux:latest
script:
- cd build
- ninja test
cache:
<<: *dependency_cache
policy: pull
dependencies:
- build:archlinux
except:
- tags
# Debian 10 (Buster)
build:debian-buster:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/debian:buster
script:
- mkdir -p build && cd build
- meson ..
- ninja
cache:
<<: *dependency_cache
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:debian-buster:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/debian:buster
script:
- cd build
- ninja test
cache:
<<: *dependency_cache
policy: pull
dependencies:
- build:debian-buster
except:
- tags
# Ubuntu 18.04 LTS (Bionic Beaver)
build:ubuntu-bionic:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:bionic
script:
- mkdir -p build && cd build
- meson ..
- ninja
cache:
<<: *dependency_cache
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:ubuntu-bionic:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:bionic
script:
- cd build
- ninja test
cache:
<<: *dependency_cache
policy: pull
dependencies:
- build:ubuntu-bionic
except:
- tags
# Ubuntu 19.10 (Eoan Ermine)
build:ubuntu-eoan:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:eoan
script:
- mkdir -p build && cd build
- meson ..
- ninja
cache:
<<: *dependency_cache
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:ubuntu-eoan:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:eoan
script:
- cd build
- ninja test
cache:
<<: *dependency_cache
policy: pull
dependencies:
- build:ubuntu-eoan
except:
- tags
......@@ -15,8 +15,8 @@ metainfodir = join_paths(datadir, 'metainfo')
desktopdir = join_paths(datadir, 'applications')
# required dependencies
zathura = dependency('zathura', version: '>=0.3.9')
girara = dependency('girara-gtk3')
zathura = dependency('zathura', version: '>=0.3.9', fallback: ['zathura', 'zathura_dependency'])
girara = dependency('girara-gtk3', fallback: ['girara', 'girara_dependency'])
glib = dependency('glib-2.0')
poppler = dependency('poppler-glib', version: '>=0.18')
......
[wrap-git]
directory=girara
url=https://git.pwmt.org/pwmt/girara.git
revision=develop
[wrap-git]
directory=zathura
url=https://git.pwmt.org/pwmt/zathura.git
revision=develop
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment