Merge branch 'feature/cicd' into 'master'
Feature: install CI/CD pipeline See merge request startinblox/djangoldp-packages/djangoldp-notifications!1
This commit is contained in:
commit
0593530952
30
.gitlab-ci.yml
Normal file
30
.gitlab-ci.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
image: python:3.6
|
||||
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- echo 'Make your tests here !'
|
||||
except:
|
||||
- master
|
||||
tags:
|
||||
- sib
|
||||
|
||||
publish:
|
||||
stage: release
|
||||
before_script:
|
||||
- git config user.name "${GITLAB_USER_NAME}"
|
||||
- git config user.email "${GITLAB_USER_EMAIL}"
|
||||
- git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@git.happy-dev.fr/${CI_PROJECT_PATH}.git"
|
||||
- pip install git+https://github.com/plup/python-semantic-release
|
||||
- pip install sib-commit-parser
|
||||
script:
|
||||
- semantic-release publish
|
||||
only:
|
||||
- master
|
||||
tags:
|
||||
- sib
|
2
djangoldp_notification/__init__.py
Normal file
2
djangoldp_notification/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
__version__ = '0.0.0'
|
||||
name = "djangoldp_notification"
|
4
djangoldp_notification/apps.py
Normal file
4
djangoldp_notification/apps.py
Normal file
@ -0,0 +1,4 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
class DjangoldpNotificationConfig(AppConfig):
|
||||
name = 'djangoldp_notification'
|
@ -1 +0,0 @@
|
||||
name = "djangoldp_notifications"
|
@ -1,4 +0,0 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
class DjangoldpNotificationsConfig(AppConfig):
|
||||
name = 'djangoldp_notifications'
|
18
setup.cfg
Normal file
18
setup.cfg
Normal file
@ -0,0 +1,18 @@
|
||||
[metadata]
|
||||
name = djangoldp_notification
|
||||
version = attr: djangoldp_notification.__version__
|
||||
url = https://git.happy-dev.fr/startinblox/djangoldp-packages/djangoldp-notifications
|
||||
author = Startin'blox
|
||||
author_email = matthieu@happy-dev.fr
|
||||
description = djangoldp package for notifications data models
|
||||
license = MIT
|
||||
|
||||
[options]
|
||||
packages = find:
|
||||
install_requires =
|
||||
djangoldp~=0.5
|
||||
|
||||
[semantic_release]
|
||||
version_source = tag
|
||||
version_variable = djangoldp_profile/__init__.py:__version__
|
||||
commit_parser = commit_parser.parse
|
16
setup.py
16
setup.py
@ -1,15 +1,5 @@
|
||||
import os
|
||||
from setuptools import setup, find_packages
|
||||
#!/usr/bin/env python
|
||||
|
||||
# allow setup.py to be run from any path
|
||||
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
||||
from setuptools import setup
|
||||
|
||||
setup(name='djangoldp_notifications',
|
||||
version='0.0.1',
|
||||
description='djangoldp package for notifications data models',
|
||||
url='https://git.happy-dev.fr/startinblox/djangoldp-packages/djangoldp-notifications',
|
||||
author="Startin'blox",
|
||||
author_email='matthieu@happy-dev.fr',
|
||||
license='MIT',
|
||||
packages=find_packages(),
|
||||
zip_safe=False)
|
||||
setup()
|
||||
|
Loading…
Reference in New Issue
Block a user