From 48502543eb0a0b18549be4085b8e29b36410f3b5 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 2 Jun 2020 08:28:49 +0200 Subject: [PATCH] travis-ci: upload docs in CI --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 42c25b3d..08c878ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -77,6 +77,9 @@ install: - set -e - pip3 install -r requirements.txt -r requirements-dev.txt - pip3 install auditwheel twine +- if [[ "${BUILD_TARGET}" = "linux" ]]; then + pip3 install sphinx numpydoc s3cmd; + fi - if [[ "${BUILD_TARGET}" = "macos" ]]; then pip3 install delocate; fi @@ -89,6 +92,7 @@ script: fi - if [[ "${BUILD_TARGET}" = "linux" ]]; then auditwheel repair --plat manylinux2010_x86_64 dist/*.whl; + make -C mavsdk html; fi - if [[ "${BUILD_TARGET}" = "macos" ]]; then delocate-wheel -w wheelhouse -v dist/*.whl; @@ -110,7 +114,15 @@ script: else echo "Not deploying without git tag."; fi +- if [[ "${BUILD_TARGET}" = "linux" ]] && [[ ! -z "${TRAVIS_TAG}" ]]; then + echo "Uploading docs"; + other/tools/upload_docs.sh; + else + echo "Not uploading docs without git tag."; + fi env: global: - secure: cpJLKiOqUTYB1ozkVus4SlPBP/XJ1uUxfMKos+XLWxEVOTguLIW+bKhLfquY9+PlY2rajl5jxxzrX5RZOgZR0fbHHh9FAzioWhzEEUQb76IKnDD7St8J6Pq65bO1Vk8o0sdtQ+ht8+RK54TJL6d8jxVh4RNV3txBB6wFzkFcw5WTDxgWr/+HsYfC9IQkIXGf8NJmvdCUBunL2xDULZ3rlPzEG/YmXjR79g51juNWvZjDKFjLmpHe/qN8VSws1QrI7tKtTtNrNutlAVnOWSlcnJspzex0WfG4EINyjJH7WQZppLiax55jWSBAzxee3/7jXyDVDOJBPl8JT/GyqoQL/qHDmiJuHm53Ktpgg0saGlcSuYuA643PVVJ2Q1SerTtboukJIfNi08GykSPLIbT6PHqhB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