Skip to content
Snippets Groups Projects
Commit e2abebbe authored by Lan Dam's avatar Lan Dam
Browse files

Gitlab CI pipeline and setup files

parent 5e552084
No related branches found
No related tags found
1 merge request!2Gitlab CI pipeline and setup files
Pipeline #1216 failed with stage
in 17 seconds
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
stages:
- Build Env and Test
before_script:
- python setup.py
flake8:
image: python 3.8
tags:
- soh
stage: Build Env and Test
script:
- flake8 sohstationviewer
- flake8 tests
python3.7:
image: python:3.7
tags:
- passoft
stage: Build Env and Test
script:
- python -m unittest
python3.8:
image: python:3.8
tags:
- passoft
stage: Build Env and Test
script:
- python -m unittest
python3.9:
image: python:3.9
tags:
- passoft
stage: Build Env and Test
script:
- python -m unittest
setup.py 0 → 100644
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst', 'rt') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst', 'rt') as history_file:
history = history_file.read()
setup(
author="IRIS PASSCAL",
author_email='software-support@passcal.nmt.edu',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
description="Visualize State-of-Health packets from raw data recorded by "
"different type of dataloggers.",
entry_points={
'console_scripts': [
'sohstationviewer=sohstationviewer.sohstationviewer:main',
],
},
install_requires=['obspy',
'PySide2'],
setup_requires=[],
extras_require={
'dev': [
'flake8'
]
},
license="GNU General Public License v3",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='sohstationviewer',
name='sohstationviewer',
packages=find_packages(include=['sohstationviewer']),
url='https://git.passcal.nmt.edu/passoft/sohstationviewer',
version='2021.167',
zip_safe=False,
)
import sys
from PySide2 import QtWidgets
def main():
app = QtWidgets.QApplication()
# gui = MainGUI
sys.exit(app.exec_())
if __name__ == '__main__':
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment