Commit f78332c6 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Merge branch '18-try-out-gitlab-s-static-code-analysis' into 'master'

Resolve "Try out Gitlab's static code analysis"

Closes #18

See merge request elixir/elixir-beacon!18
parents 3af58ffb 47a2b9f3
Pipeline #29762 passed with stages
in 3 minutes and 1 second
# This base image builds upon python3, with pre-installed Python requirements and _node js_.
image: jlebiodaunilu/elixirlu-basebeacon-python:v0.2.2
cache:
untracked: true
key: "$CI_PROJECT_ID"
paths:
- .yarn
stages:
- test
- integration
before_script:
- cd code
- pip install -r backend/requirements.txt --default-timeout=180
- pip install -e backend/. --default-timeout=180
- pip install coverage --default-timeout=180
include:
- template: Dependency-Scanning.gitlab-ci.yml
- template: SAST.gitlab-ci.yml
sast:
stage: integration
tags:
- privileged
except:
- schedules
#variables:
# SAST_EXCLUDED_PATHS: 'node_modules,dist'
dependency_scanning:
stage: integration
tags:
- privileged
except:
- schedules
services:
- name: docker:stable-dind
command: ["--mtu=1458"]
test:
stage: test
before_script:
- cd code
- pip install -r backend/requirements.txt --default-timeout=180
- pip install -e backend/. --default-timeout=180
- pip install coverage --default-timeout=180
script:
- cd .. && pwd
- cp configuration/templates/*.yaml configuration/
......@@ -21,4 +42,9 @@ test:
- cd code/frontend/ && pwd && yarn install --pure-lockfile --cache-folder ../../.yarn && node node_modules/gulp/bin/gulp.js
- cd ../backend && pwd
- coverage run setup.py test
- coverage report -m
\ No newline at end of file
- coverage report -m
cache:
untracked: true
key: "$CI_PROJECT_ID"
paths:
- .yarn
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment