Skip to content
Snippets Groups Projects
Commit f59b4fbf authored by tobiglaser's avatar tobiglaser
Browse files

added Doxygen to gitlab-ci

parent 03440d89
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ Windows-MSYS2-MINGW64:
C:\msys64\usr\bin\bash -lcx '
pacman --noconfirm -Syu mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake
pacman --noconfirm -Syu mingw-w64-x86_64-qt5-static
pacman --noconfirm -Syu mingw-w64-x86_64-doxygen mingw-w64-x86_64-graphviz
pacman --noconfirm -Syu zip'
- | # Building
C:\msys64\usr\bin\bash -lcx '
......@@ -44,6 +45,7 @@ Windows-MSYS2-MINGW64:
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
cmake --build . --target cute
cmake --build . --target doc_doxygen
ls -lh
cd ..'
- | # Collecting all Files and zipping them
......@@ -59,10 +61,13 @@ Windows-MSYS2-MINGW64:
mv .clang-format template/
mv .gitignore template/
zip -r template-windows.zip template/
zip -r doxygen.zip doxygen/
'
# Uploading the zip to the Package Registry
- $URL = "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-windows.zip"
- Invoke-WebRequest -Uri $URL -Method Put -Headers @{ "JOB-TOKEN" = "$CI_JOB_TOKEN" } -InFile "template-windows.zip" -UseBasicParsing
- $URL = "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/doxygen.zip"
- Invoke-WebRequest -Uri $URL -Method Put -Headers @{ "JOB-TOKEN" = "$CI_JOB_TOKEN" } -InFile "doxygen.zip" -UseBasicParsing
# Automatically publishing a new Release with the files Uploaded to the Package Registry.
# The Release may be edited manually under gitlab -> project -> deploy -> releases.
......@@ -76,12 +81,15 @@ Publish:
release:
name: "Release $CI_COMMIT_TAG"
tag_name: "$CI_COMMIT_TAG"
description: "Automated release including Windows builds." # & Linux
description: "Automated release including Windows builds and Doxygen documentation." # & Linux
assets:
links:
- name: "Windows Template"
link_type: package
url: "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-windows.zip"
- name: "Doxygen"
link_type: other
url: "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/doxygen.zip"
#- name: "Linux Template"
# link_type: package
# url: "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/generic/cutelib-hsrt/$CI_COMMIT_TAG/template-linux.zip"
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