libhandy-rs/.gitlab-ci.yml
2021-02-28 15:10:29 +00:00

36 lines
946 B
YAML

image: 'registry.fedoraproject.org/fedora:31'
before_script:
- dnf update -y
- dnf install -y rust cargo git meson ninja-build glib2-devel gtk3-devel gobject-introspection-devel xorg-x11-server-Xvfb
- meson _build --prefix=/usr -Dtests=false -Dexamples=false -Dlibhandy:vapi=false
- ninja -C _build install
- git submodule update --init
stages:
- test
- deploy
build:
stage: test
script:
- cargo build --all-features
- xvfb-run -a -s "-screen 0 1024x768x24" cargo test
pages:
stage: deploy
script:
# generate the docs
- cp ./Handy-1.gir ./gir-files
- cargo run --release -- -c ./libhandy/Gir.toml -d ./gir-files --doc-target-path docs.md -m doc
- cargo install rustdoc-stripper
- /root/.cargo/bin/rustdoc-stripper -g -o ./libhandy/docs.md
- cargo doc -p libhandy --all-features --no-deps
- mv target/doc/ public
artifacts:
paths:
- public
only:
refs:
- master