summaryrefslogtreecommitdiff
path: root/web-server/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-29 16:05:23 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 16:18:36 +0200
commit4f9a40abdc7836345113c047f27fcc96800cb3f5 (patch)
treee443d14e34a884b1a4d9c549f81d51202eddd5f7 /web-server/.gitlab-ci.yml
parentcd5f7bf3a72913e1602cb4c575e61ac7d5519be0 (diff)
Prepare web-server repository for monorepo
This change prepares the web-server Git repository for the monorepo residing at https://github.com/atlarge-research.com/opendc. To accomodate for this, we move all files into a web-server subdirectory.
Diffstat (limited to 'web-server/.gitlab-ci.yml')
-rw-r--r--web-server/.gitlab-ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/web-server/.gitlab-ci.yml b/web-server/.gitlab-ci.yml
new file mode 100644
index 00000000..c8c07a56
--- /dev/null
+++ b/web-server/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+image: "python:3.8"
+
+variables:
+ PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
+
+cache:
+ paths:
+ - .cache/pip
+
+stages:
+ - static-analysis
+ - test
+
+static-analysis:
+ stage: static-analysis
+ allow_failure: true
+ script:
+ - python --version
+ - pip install -r requirements.txt
+ - pylint opendc
+
+test:
+ stage: test
+ script:
+ - python --version
+ - pip install -r requirements.txt
+ - pytest opendc