Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rotare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rouma Alexandre
Rotare
Commits
665da148
Verified
Commit
665da148
authored
2 years ago
by
Thomas Lambert
Browse files
Options
Downloads
Patches
Plain Diff
ci: automate releases
parent
67fd62c9
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+34
-4
34 additions, 4 deletions
.gitlab-ci.yml
.gitmodules
+2
-2
2 additions, 2 deletions
.gitmodules
CHANGELOG.md
+7
-1
7 additions, 1 deletion
CHANGELOG.md
RELEASE.md
+12
-0
12 additions, 0 deletions
RELEASE.md
with
55 additions
and
7 deletions
.gitlab-ci.yml
+
34
−
4
View file @
665da148
...
@@ -3,42 +3,72 @@
...
@@ -3,42 +3,72 @@
# 1. Ensure code quality
# 1. Ensure code quality
# 2. Generate releases automatically
# 2. Generate releases automatically
variables
:
GIT_SUBMODULE_STRATEGY
:
normal
PACKAGE_REGISTRY_URL
:
"
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}"
# Using the official Python Docker image as default
# Using the official Python Docker image as default
default
:
default
:
image
:
python
image
:
python
# Install miss_hit
.miss_hit
:
&miss_hit
before_script
:
before_script
:
-
pip install miss_hit
-
pip install miss_hit
# Pipeline stages
# Pipeline stages
stages
:
stages
:
-
static analysis
-
static analysis
-
package
-
release
-
release
# Static code analysis jobs via MISS_HIT
# Static code analysis jobs via MISS_HIT
style_check
:
style_check
:
<<
:
*miss_hit
stage
:
static analysis
stage
:
static analysis
script
:
script
:
-
mh_style . --fix
-
mh_style . --fix
metric_check
:
metric_check
:
<<
:
*miss_hit
stage
:
static analysis
stage
:
static analysis
script
:
script
:
-
mh_metric . --ci
-
mh_metric . --ci
lint_check
:
lint_check
:
<<
:
*miss_hit
stage
:
static analysis
stage
:
static analysis
script
:
script
:
-
mh_lint .
-
mh_lint .
# TODO: Use git-archive-all and bake an archive that includes submodules
# Create an archive of the code and its submodules
release_job
:
archive_all
:
stage
:
package
rules
:
-
if
:
$CI_COMMIT_TAG
before_script
:
-
pip install git-archive-all
script
:
-
echo "Packaging source with submodules"
-
git-archive-all --force-submodules "${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.zip"
-
'
curl
--header
"JOB-TOKEN:
${CI_JOB_TOKEN}"
--upload-file
"${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.zip"
"${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.zip"'
-
git-archive-all --force-submodules "${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz"
-
'
curl
--header
"JOB-TOKEN:
${CI_JOB_TOKEN}"
--upload-file
"${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz"
"${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz"'
make_release
:
stage
:
release
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
needs
:
[
"
archive_all"
]
rules
:
rules
:
-
if
:
$CI_COMMIT_TAG
# Run when we create a new tag
-
if
:
$CI_COMMIT_TAG
script
:
script
:
-
echo "Running release_job for $TAG"
-
echo "Running release_job for $TAG"
release
:
release
:
tag_name
:
'
$CI_COMMIT_TAG'
tag_name
:
'
$CI_COMMIT_TAG'
description
:
'
Automatic
release
for
version
$CI_COMMIT_TAG'
description
:
./RELEASE.md
assets
:
links
:
-
name
:
'
COMPLETE
CODE:
${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.zip'
url
:
"
${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.zip"
-
name
:
'
COMPLETE
CODE:
${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz'
url
:
"
${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz"
This diff is collapsed.
Click to expand it.
.gitmodules
+
2
−
2
View file @
665da148
[submodule "validation/rotor-db"]
[submodule "validation/rotor-db"]
path = validation/rotor-db
path = validation/rotor-db
url =
git@gitlab.uliege.be:thlamb
/rotor-db.git
url =
..
/rotor-db.git
[submodule "src/libs/matlab_airfoil_toolbox"]
[submodule "src/libs/matlab_airfoil_toolbox"]
path = src/libs/matlab_airfoil_toolbox
path = src/libs/matlab_airfoil_toolbox
url =
git@gitlab.uliege.be:
am-dept/matlab_airfoil_toolbox
url =
../../
am-dept/matlab_airfoil_toolbox
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
7
−
1
View file @
665da148
...
@@ -21,6 +21,12 @@ _Initial commit_: single rotor in hover/axial flows
...
@@ -21,6 +21,12 @@ _Initial commit_: single rotor in hover/axial flows
### Fixed
### Fixed
## [0.0.0] - 2022-11-27
_Initial commit_
: single rotor in hover/axial flows
[
sem_ver
]:
<
https://semver.org/spec/v2.0.0.html
>
[
sem_ver
]:
<
https://semver.org/spec/v2.0.0.html
>
[
keep_chglog
]:
<
https://keepachangelog.com/en/1.0.0/
>
[
keep_chglog
]:
<
https://keepachangelog.com/en/1.0.0/
>
[
Unreleased
]:
https://gitlab.uliege.be/thlamb/rotare
[
Unreleased
]:
https://gitlab.uliege.be/thlamb/rotare/compare/0.0.0...main
[
0.0.0
]:
https://gitlab.uliege.be/thlamb/rotare/releases/tag/0.0.0
This diff is collapsed.
Click to expand it.
RELEASE.md
0 → 100644
+
12
−
0
View file @
665da148
## Download
**WARNING**
: Download the archive titled
`COMPLETE CODE: rotare-<version>`
linked above, not the _source code_ ones. The latter are automatically generated
and do not contain all dependencies.
## About this release
_Initial commit_
.
-
Single rotor in hover/axial flows
-
NOT YET VALIDATED
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment