mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 06:53:46 +01:00
Add CI
This commit is contained in:
parent
2d0dfd5c0f
commit
88cdc850af
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,6 +7,7 @@
|
|||||||
*.pc
|
*.pc
|
||||||
*.sw[a-z]
|
*.sw[a-z]
|
||||||
*.pyc
|
*.pyc
|
||||||
|
tags
|
||||||
|
|
||||||
# generated files
|
# generated files
|
||||||
resources.*
|
resources.*
|
||||||
@ -24,6 +25,7 @@ zathura-*.tar.gz
|
|||||||
.tx
|
.tx
|
||||||
build/
|
build/
|
||||||
gcov/
|
gcov/
|
||||||
|
subprojects/girara
|
||||||
|
|
||||||
# development files
|
# development files
|
||||||
.clang_complete
|
.clang_complete
|
||||||
|
129
.gitlab-ci.yml
Normal file
129
.gitlab-ci.yml
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
|
# Cache
|
||||||
|
cache:
|
||||||
|
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
|
||||||
|
paths:
|
||||||
|
- subprojects/girara
|
||||||
|
|
||||||
|
# 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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
dependencies:
|
||||||
|
- build:ubuntu-eoan
|
||||||
|
except:
|
||||||
|
- tags
|
@ -37,7 +37,7 @@ plugindir = join_paths(get_option('libdir'), 'zathura')
|
|||||||
|
|
||||||
# required dependencies
|
# required dependencies
|
||||||
libm = cc.find_library('m', required: false)
|
libm = cc.find_library('m', required: false)
|
||||||
girara = dependency('girara-gtk3', version: '>=0.3.3')
|
girara = dependency('girara-gtk3', version: '>=0.3.3', fallback: ['girara', 'girara_dependency'])
|
||||||
glib = dependency('glib-2.0', version: '>=2.50')
|
glib = dependency('glib-2.0', version: '>=2.50')
|
||||||
gio = dependency('gio-unix-2.0', required: host_machine.system() != 'windows')
|
gio = dependency('gio-unix-2.0', required: host_machine.system() != 'windows')
|
||||||
gthread = dependency('gthread-2.0', version: '>=2.50')
|
gthread = dependency('gthread-2.0', version: '>=2.50')
|
||||||
|
4
subprojects/girara.wrap
Normal file
4
subprojects/girara.wrap
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[wrap-git]
|
||||||
|
directory=girara
|
||||||
|
url=https://git.pwmt.org/pwmt/girara.git
|
||||||
|
revision=develop
|
Loading…
Reference in New Issue
Block a user