Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaotikum
website
Commits
d0301024
Commit
d0301024
authored
1 year ago
by
Lukas Ruge
Browse files
Options
Downloads
Patches
Plain Diff
new pipeline stage to check ical file
parent
8b998e0e
No related branches found
No related tags found
No related merge requests found
Pipeline
#11098
passed with warnings
1 year ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-0
9 additions, 0 deletions
.gitlab-ci.yml
check_ical.py
+12
-0
12 additions, 0 deletions
check_ical.py
with
21 additions
and
0 deletions
.gitlab-ci.yml
+
9
−
0
View file @
d0301024
...
@@ -21,6 +21,15 @@ check for dead links:
...
@@ -21,6 +21,15 @@ check for dead links:
-
env LANG=en_US.UTF-8 bundle exec jekyll build
-
env LANG=en_US.UTF-8 bundle exec jekyll build
-
linkchecker --no-status --check-extern --ignore-url '!chaotikum.org' --ignore-url '/blog/20(13|14|15|16|17|18)/.*' --no-warnings _site/ | sed -e "s|$CI_PROJECT_DIR||g"
-
linkchecker --no-status --check-extern --ignore-url '!chaotikum.org' --ignore-url '/blog/20(13|14|15|16|17|18)/.*' --no-warnings _site/ | sed -e "s|$CI_PROJECT_DIR||g"
check ical files
:
stage
:
test
allow_failure
:
true
before_script
:
-pip3 install "requests==2.28.2"
-pip3 install "icalendar=5.0.7"
script
:
-
python3 check_ical.py
create media tickets
:
create media tickets
:
stage
:
test
stage
:
test
allow_failure
:
true
allow_failure
:
true
...
...
This diff is collapsed.
Click to expand it.
check_ical.py
0 → 100644
+
12
−
0
View file @
d0301024
from
icalendar
import
Calendar
import
requests
import
sys
print
(
"
get ics from url
"
)
text
=
requests
.
get
(
"
https://chaotikum.org/events.ics
"
).
text
try
:
print
(
"
read ics
"
)
c
=
Calendar
.
from_ical
(
text
)
except
:
print
(
"
ERROR: ical file not valid
"
)
sys
.
exit
(
1
)
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