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_. # This base image builds upon python3, with pre-installed Python requirements and _node js_.
image: jlebiodaunilu/elixirlu-basebeacon-python:v0.2.2 image: jlebiodaunilu/elixirlu-basebeacon-python:v0.2.2
cache: stages:
untracked: true - test
key: "$CI_PROJECT_ID" - integration
paths:
- .yarn
before_script: include:
- cd code - template: Dependency-Scanning.gitlab-ci.yml
- pip install -r backend/requirements.txt --default-timeout=180 - template: SAST.gitlab-ci.yml
- pip install -e backend/. --default-timeout=180
- pip install coverage --default-timeout=180 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: 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: script:
- cd .. && pwd - cd .. && pwd
- cp configuration/templates/*.yaml configuration/ - cp configuration/templates/*.yaml configuration/
...@@ -21,4 +42,9 @@ test: ...@@ -21,4 +42,9 @@ test:
- cd code/frontend/ && pwd && yarn install --pure-lockfile --cache-folder ../../.yarn && node node_modules/gulp/bin/gulp.js - cd code/frontend/ && pwd && yarn install --pure-lockfile --cache-folder ../../.yarn && node node_modules/gulp/bin/gulp.js
- cd ../backend && pwd - cd ../backend && pwd
- coverage run setup.py test - coverage run setup.py test
- coverage report -m - coverage report -m
\ No newline at end of file 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