Select Git revision
.gitlab-ci.yml
Forked from an inaccessible project.
-
Florentin Labelle authoredFlorentin Labelle authored
.gitlab-ci.yml 6.54 KiB
image: python:3.9
# variables:
# MYSQL_DATABASE: $MYSQL_DATABASE
# MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
# MYSQL_USER: $MYSQL_USER
# MYSQL_PASSWORD: $MYSQL_PASSWORD
# MYSQL_DATABASE: $MYSQL_DATABASE
# services:
# - name: mysql:latest
# command: ["mysqld", "--authentication-policy=mysql_native_password"]
# alias: mysql
# services:
# - name: mysql:latest
# command: ["mysqld", "--authentication-policy=mysql_native_password"]
# alias: mysql
# variables:
# MYSQL_DATABASE: $MYSQL_DATABASE
# MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
# Host: mysql
# User: $MYSQL_USER
# Password: $MYSQL_PASSWORD
# Database: $MYSQL_DATABASE
stages:
- build
- test
- deploy
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH
cache:
paths:
- venv/
- frontend/node_modules/
# include:
# - template: 'Code-Quality.gitlab-ci.yml'
#######################################################################################################################################
#### ####
#### Install dependencies ####
#### ####
#######################################################################################################################################
install-virtualenv:
stage: build
script:
- python3 -m venv venv/
- source venv/bin/activate
- pip install --upgrade pip && pip install pip-tools
- pip install -r ./backend/requirements.txt
install-npm-packages:
image: node:14.6.0
stage: build
script:
- cd ./frontend
- npm ci
#######################################################################################################################################