Skip to content

Commit

Permalink
Copy CI configuration files and directories to deploy branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Steinbeck committed Nov 5, 2018
1 parent 4c6ef4b commit 9150a6b
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions tools/ci/deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,19 @@ if [ -z "$BUILD_DIR" ]; then
fi
BUILD_DIR_FIXED="$SCRIPT_DIR/$BUILD_DIR"

# Path to the CircleCI config directory. This directory will be copied to
# DOCS_BRANCH and BUILD_BRANCH to prevent that these branches are tested by
# CircleCI, which fails due to missing tests.
# The following CI configuration files and directories will be copied to
# DOCS_BRANCH and BUILD_BRANCH to prevent that these branches are tested (which
# fails due to missing tests).
APPVEYOR_CONFIG_PATH="$SCRIPT_DIR/../../.appveyor.yml"
if [ ! -f "$APPVEYOR_CONFIG_PATH" ]; then
echo "AppVeyor config file is not available; aborting."
exit -1
fi
TRAVISCI_CONFIG_PATH="$SCRIPT_DIR/../../.travis.yml"
if [ ! -f "$TRAVISCI_CONFIG_PATH" ]; then
echo "TravisCI config file is not available; aborting."
exit -1
fi
CIRCLECI_CONFIG_DIR="$SCRIPT_DIR/../../.circleci"
if [ ! -d "$CIRCLECI_CONFIG_DIR" ]; then
echo "CircleCI config directory is not available; aborting."
Expand Down Expand Up @@ -117,6 +127,12 @@ pushd "$BUILD_BRANCH_DIR"
# Copy binaries.
cp -R "$BIN_DIR" ./

# Copy AppVeyor config file.
cp "$APPVEYOR_CONFIG_PATH" ./

# Copy TravisCI config file.
cp "$TRAVISCI_CONFIG_PATH" ./

# Copy CircleCI config directory.
cp -R "$CIRCLECI_CONFIG_DIR" ./

Expand Down Expand Up @@ -166,6 +182,12 @@ pushd "$DOCS_BRANCH_DIR"
# Copy docs.
cp -a "$DOXYGEN_HTML_DIR/." ./

# Copy AppVeyor config file.
cp "$APPVEYOR_CONFIG_PATH" ./

# Copy TravisCI config file.
cp "$TRAVISCI_CONFIG_PATH" ./

# Copy CircleCI config directory.
cp -R "$CIRCLECI_CONFIG_DIR" ./

Expand Down

0 comments on commit 9150a6b

Please sign in to comment.