travis-ci generate and upload parameters.md

This commit is contained in:
Daniel Agar 2017-04-06 16:06:11 -04:00 committed by Lorenz Meier
parent cff20ee51e
commit 8c9affddc8
3 changed files with 22 additions and 0 deletions

2
.gitignore vendored
View File

@ -87,3 +87,5 @@ coverage-html/
coverage.info
posix-configs/SITL/init/test/*_generated
parameters.md

View File

@ -29,6 +29,11 @@ matrix:
services:
- docker
env: BUILD_TARGET=clang-tidy
- os: linux
sudo: required
services:
- docker
env: BUILD_TARGET=parameters_markdown
- os: osx
sudo: true
osx_image: xcode8
@ -59,6 +64,8 @@ script:
./Tools/docker_run.sh 'make tests';
elif [[ "${BUILD_TARGET}" = "clang-tidy" && "${TRAVIS_BRANCH}" != "coverity" ]]; then
PX4_DOCKER_REPO=px4io/px4-dev-clang ./Tools/docker_run.sh 'make clang-tidy-parallel';
elif [[ "${BUILD_TARGET}" = "parameters_markdown" && "${TRAVIS_BRANCH}" != "coverity" ]]; then
PX4_DOCKER_REPO=px4io/px4-dev-base ./Tools/docker_run.sh 'make parameters_markdown';
elif [ "${TRAVIS_OS_NAME}" = "osx" ]; then
make tests;
fi
@ -69,6 +76,9 @@ after_success:
./Tools/docker_run.sh 'make s3put_firmware AWS_S3_BUCKET="px4-travis/archives/Firmware/${TRAVIS_BRANCH}/${TRAVIS_BUILD_ID}"'
&& ./Tools/docker_run.sh 'make s3put_qgc_firmware AWS_S3_BUCKET="px4-travis/Firmware/${TRAVIS_BRANCH}"';
fi
- if [[ "${BUILD_TARGET}" = "parameters_markdown" && "${TRAVIS_PULL_REQUEST}" == "false" && "${TRAVIS_BRANCH}" != "coverity" ]]; then
./Tools/docker_run.sh 'make s3put_parameters_markdown AWS_S3_BUCKET="px4-travis/Firmware/${TRAVIS_BRANCH}"';
fi
deploy:
# on tags deploy Firmware.zip to Github releases

View File

@ -221,6 +221,13 @@ check_%:
@$(MAKE) --no-print-directory $(subst check_,,$@)
@echo
# Documentation
# --------------------------------------------------------------------
.PHONY: parameters_markdown
parameters_markdown: posix_sitl_default
@python $(SRC_DIR)/Tools/px_process_params.py -s $(SRC_DIR)/src --markdown
# S3 upload helpers
# --------------------------------------------------------------------
# s3cmd uses these ENV variables
@ -241,6 +248,9 @@ s3put_qgc_firmware: qgc_firmware
@$(SRC_DIR)/Tools/s3put.sh $(SRC_DIR)/build_px4fmu-v3_default/parameters.xml
@find $(SRC_DIR)/build_* -name "*.px4" -exec $(SRC_DIR)/Tools/s3put.sh "{}" \;
s3put_parameters_markdown: parameters_markdown
@$(SRC_DIR)/Tools/s3put.sh parameters.md
# Astyle
# --------------------------------------------------------------------
.PHONY: check_format format