Skip to content
Snippets Groups Projects
Commit d0301024 authored by Lukas Ruge's avatar Lukas Ruge
Browse files

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
...@@ -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
......
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)
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