From 6c5120e3d1843d34919390757ce96eb12249ed34 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 9 Oct 2019 12:52:45 -0400 Subject: [PATCH] Update CI + comments --- .gitlab-ci.yml | 9 +++++++++ src/config.py | 3 +++ 2 files changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fb6e7a9..481093f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,3 +6,12 @@ debian: - pip install PyYAML script: - bash tests/run.sh break + +archlinux: + stage: test + image: archlinux/base + before_script: + - pacman -Sy --noconfirm && pacman -S --noconfirm python python-pip + - pip install PyYAML + script: + - bash tests/run.sh break diff --git a/src/config.py b/src/config.py index cc43712..ee0d1f8 100755 --- a/src/config.py +++ b/src/config.py @@ -27,6 +27,9 @@ def before_token(token, line): return(found.group(0)[:-len(token)]) return("") def sorted_items(d): + """ + Mainly used for integration testing (to keep having deterministic results). + """ return(sorted(d.items())) def no_comment(line): """