-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
505 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,44 @@ | ||
image: $DOCKER_IMAGE | ||
|
||
before_script: | ||
# sudo is necessary for setup-enviroment.sh script | ||
- apt-get --allow-releaseinfo-change update && apt-get install -y --no-install-recommends git build-essential sudo | ||
- ./.github/scripts/setup-environment.sh | ||
- git submodule update --init --recursive | ||
|
||
test: | ||
before_script: | ||
- export DEBIAN_FRONTEND=noninteractive | ||
# sudo is necessary for setup-enviroment.sh script | ||
- apt --allow-releaseinfo-change update && apt install -y --no-install-recommends git build-essential sudo | ||
- ./.github/scripts/setup-environment.sh | ||
- git submodule update --init --recursive | ||
script: | ||
- make testall | ||
- mkdir out/ | ||
- mv out*.png out/ | ||
artifacts: | ||
paths: | ||
- out/ | ||
|
||
build-docs: | ||
stage: build | ||
script: | ||
- export DEBIAN_FRONTEND=noninteractive | ||
- apt --allow-releaseinfo-change update && apt install -y --no-install-recommends git build-essential sudo | ||
- sudo apt install -y --no-install-recommends make python3 python3-pip | ||
- pip3 install -r docs/requirements.txt | ||
- SPHINXOPTS="-A conf_py_path=$DOCS_DIR/$SOURCEDIR/ -A commit=$CI_BUILD_REF -A branch=$CI_BUILD_REF_NAME" make html | ||
- make linkcheck | ||
- cp docs/*.png build/html | ||
- tar cf $CI_DOCS_ARCHIVE -C build/html/ . | ||
artifacts: | ||
paths: | ||
- build | ||
- $CI_DOCS_ARCHIVE | ||
|
||
deploy-docs: | ||
variables: | ||
GIT_STRATEGY: none | ||
dependencies: | ||
- build-docs | ||
stage: deploy | ||
tags: ['docs'] | ||
script: echo 'Deploying docs' | ||
artifacts: | ||
paths: | ||
- $CI_DOCS_ARCHIVE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,7 @@ clean: | |
$(SBT) clean | ||
|
||
.PHONY: verilog test testall | ||
|
||
%: | ||
sphinx-build -M $@ docs build $(SPHINXOPTS) $(0) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.