Commit 356f79f4 authored by Florent Chehab's avatar Florent Chehab
Browse files

CI ready

parent 76d94711
Pipeline #27416 passed with stages
in 4 minutes and 26 seconds
# stages:
# - test
# - syntaxe
# - doc
# - deploy
stages:
- test
- syntaxe
- doc
- deploy
# variables:
# ENV: CI
# POSTGRES_DB: outgoing
# POSTGRES_USER: outgoing
# POSTGRES_PASSWORD: ""
variables:
ENV: CI
POSTGRES_DB: outgoing
POSTGRES_USER: outgoing
POSTGRES_PASSWORD: ""
# testing:
# stage: test
# image: python:3.6.5-jessie
# services:
# - postgres:9.6.8
# script:
# - make install_backend
# - make check_backend
# - make test_backend_server
# artifacts:
# paths:
# - htmlcov/
# expire_in: 1 month
# tags:
# - docker
testing:
stage: test
image: python:3.6.5-jessie
services:
- postgres:9.6.8
script:
- make install_backend
- make check_backend
- make test_backend_server
artifacts:
paths:
- htmlcov/
expire_in: 1 month
tags:
- docker
# flake8:
# stage: syntaxe
# image: python:3.6.5-jessie
# script:
# - pip install flake8
# - flake8
# tags:
# - docker
flake8:
stage: syntaxe
image: python:3.6.5-jessie
script:
- pip install flake8
- flake8
tags:
- docker
# pages:
# stage: doc
# image: floawfloaw/plantuml
# dependencies:
# - testing
# script:
# - mkdir .public
# - mv htmlcov/ .public/coverage
# - make docs
# - mv docs/ .public/docs
# - mv .public public
# artifacts:
# paths:
# - public
# expire_in: 1 month
# only:
# - master
# tags:
# - docker
pages:
stage: doc
image: floawfloaw/plantuml
dependencies:
- testing
script:
- mkdir .public
- mv htmlcov/ .public/coverage
- make docs
- mv docs/ .public/docs
- mv .public public
artifacts:
paths:
- public
expire_in: 1 month
only:
- master
tags:
- docker
deliver_for_production:
type: deploy
......
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