Skip to content
Snippets Groups Projects
Commit 10fba4ca authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

.gitlab-ci.yml, Makefile: put build artifacts in $CI_PROJECT_DIR


GitLab CI system has a constraint that requires all artifact files to be
placed in a sub-directory of $CI_PROJECT_DIR - aka the place where the
project is automatically checked out by the GitLab runner. Since our
project is manifest-based, we use a temporary scratch directory where
the entire structure is created.

Override `make` invocation, so that it builds the project from the
scratch directory into a build sub-directory of CI_PROJECT_DIR.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent 1fb824f7
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ build:
stage: build
script:
- *doc-workspace-do
- make
- make BUILD_DIR="$CI_PROJECT_DIR/build"
artifacts:
paths:
- build
......
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Huawei Inc.
BUILD_DIR ?= build
.PHONY: all
all: build
all: $(BUILD_DIR)
.PHONY: clean
clean:
rm -rf build
build:
sphinx-build -W . build
SRC_DIR ?= .
# XXX: cannot add true dependencies because some file names contain spaces.
$(BUILD_DIR):
sphinx-build -W $(SRC_DIR) $(BUILD_DIR)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment