From 3aa924ff2d27f60ab4988a5c295c19685e5d126d Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Fri, 31 Dec 2021 21:16:22 +0000 Subject: [PATCH 1/2] Add CI/CD conf file --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0108421 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +stages: + - test + - run + + +#before_script: + +python-syntax-check: + stage: test + script: + - apt update + - apt install -y python3 python3-ldap python3-requests python3-yaml + - python3 -m compileall sync.py + +run-live: + stage: run + script: + - apt update + - apt install -y python3 python3-ldap python3-requests python3-yaml + - python3 sync.py + only: + - master -- GitLab From 01b8fefcc7a1a832116e5545dfa2682684bb1e24 Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Fri, 31 Dec 2021 21:28:04 +0000 Subject: [PATCH 2/2] disable running the code from CI --- .gitlab-ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0108421..365760f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,11 +12,11 @@ python-syntax-check: - apt install -y python3 python3-ldap python3-requests python3-yaml - python3 -m compileall sync.py -run-live: - stage: run - script: - - apt update - - apt install -y python3 python3-ldap python3-requests python3-yaml - - python3 sync.py - only: - - master +#run-live: +# stage: run +# script: +# - apt update +# - apt install -y python3 python3-ldap python3-requests python3-yaml +# - python3 sync.py +# only: +# - master -- GitLab