[ci] Move docs deployment from autotools to meson

This commit is contained in:
Ebrahim Byagowi 2020-06-04 02:38:27 +04:30 committed by GitHub
parent b8320340ce
commit 5293fdba23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 8 deletions

View File

@ -3,11 +3,6 @@
set -x
set -o errexit -o nounset
if test "x$TRAVIS_SECURE_ENV_VARS" != xtrue; then exit; fi
BRANCH="$TRAVIS_BRANCH"
if test "x$BRANCH" != xmaster; then exit; fi
TAG="$(git describe --exact-match --match "[0-9]*" HEAD 2>/dev/null || true)"
DOCSDIR=build-docs
@ -17,8 +12,8 @@ rm -rf $DOCSDIR || exit
mkdir $DOCSDIR
cd $DOCSDIR
cp ../docs/html/* .
#cp ../docs/CNAME .
cp ../build/docs/html/* .
#cp ../build/docs/CNAME .
git init
git config user.name "Travis CI"

View File

@ -20,6 +20,16 @@ jobs:
run: meson build -Db_coverage=true -Dglib=enabled -Dcairo=enabled -Dicu=enabled -Dgraphite=enabled -Dfreetype=enabled
- name: ci
run: meson test --print-errorlogs -Cbuild
- name: generate documentations
run: ninja -Cbuild harfbuzz-doc
- name: deploy documentations
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: .ci/deploy-docs.sh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
REVISION: ${{ github.sha }}
- name: cov
run: ninja -Cbuild coverage
- uses: codecov/codecov-action@v1

View File

@ -20,7 +20,6 @@ matrix:
- rm -rf freetype-2.9
after_success:
- bash .ci/run-coveralls.sh # coveralls.io code coverage
- bash .ci/deploy-docs.sh
notifications:
irc: "irc.freenode.org#harfbuzz"