Commit d3122a53 authored by Mario Limonciello's avatar Mario Limonciello Committed by Mario Limonciello
Browse files

Publish docs to fwupd.github.io using CircelCI

For now this is happening on every master build, but in the future
after it's working reliably it should be restricted to only tagged
builds.

To accomplish this, swap a build from circlei and travisci that
will save docs to publish.
parent b390b14f
......@@ -12,17 +12,21 @@ jobs:
name: "Run build script"
command: docker run -t -v `pwd`:/build fwupd-debian-x86_64 ./contrib/ci/check-abi $(git describe --abbrev=0 --tags) $(git rev-parse HEAD)
build-s390x:
build-ubuntu-x86_64:
machine:
image: circleci/classic:latest
steps:
- checkout
- run:
name: "Build container"
command: OS=debian-s390x ./contrib/ci/generate_docker.py
command: OS=ubuntu-x86_64 ./contrib/ci/generate_docker.py
- run:
name: "Run build script"
command: docker run --privileged -e CI=true -t -v `pwd`/dist:/build/dist fwupd-debian-s390x
command: docker run --privileged -e CI=true -t -v `pwd`/dist:/build/dist fwupd-ubuntu-x86_64
- persist_to_workspace:
root: .
paths:
- "dist/docs"
build-snap:
docker:
......@@ -40,6 +44,31 @@ jobs:
paths:
- "*.snap"
publish-docs:
machine: true
steps:
- attach_workspace:
at: .
- add_ssh_keys:
fingerprints:
- "d8:73:05:1b:7c:93:8c:12:41:78:15:3d:5d:af:b4:c2"
- run:
name: Clone docs
working_directory: dist/docs
command: |
git clone --depth 1 git@github.com:fwupd/fwupd.github.io.git
- deploy:
name: Trigger docs deployment
working_directory: dist/docs/fwupd.github.io
command: |
git config credential.helper 'cache --timeout=120'
git config user.email "info@fwupd.org"
git config user.name "Documentation deployment Bot"
rm -rf *
cp ../html/* . -R
git commit -a --allow-empty -m "Trigger deployment"
git push git@github.com:fwupd/fwupd.github.io.git
publish-edge:
docker:
- image: cibuilds/snapcraft:stable
......@@ -70,7 +99,7 @@ workflows:
version: 2
main:
jobs:
- build-s390x
- build-ubuntu-x86_64
- build-snap
- check-abi
- publish-edge:
......@@ -81,6 +110,20 @@ workflows:
only: master
deploy:
jobs:
- build-ubuntu-x86_64:
filters:
branches:
ignore: /.*/
tags:
only: /^\d+\.\d+\.\d+$/
- publish-docs:
requires:
- build-ubuntu-x86_64
filters:
branches:
ignore: /.*/
tags:
only: /^\d+\.\d+\.\d+$/
- build-snap:
filters:
branches:
......
......@@ -10,7 +10,7 @@ env:
- OS=debian-x86_64
- OS=arch
- OS=debian-i386
- OS=ubuntu-x86_64
- OS=debian-s390x
install:
- ./contrib/ci/generate_docker.py
......
......@@ -8,8 +8,14 @@ eval "$(dpkg-buildflags --export=sh)"
export LDFLAGS=$(dpkg-buildflags --get LDFLAGS | sed "s/-Wl,-Bsymbolic-functions\s//")
rm -rf build
meson build --werror
meson build --werror -Dman=false
#build with clang and -Werror
ninja -C build test -v
#make docs available outside of docker
ninja -C build install -v
mkdir -p dist/docs
cp build/docs/libfwupd/* dist/docs -R
#run static analysis (these mostly won't be critical)
ninja -C build scan-build -v
Supports Markdown
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