Commented CI configuration file

This commit is contained in:
Manuel Cortez 2019-11-26 09:26:27 -06:00
parent 63585661ae
commit f9a1183993

View File

@ -1,17 +1,18 @@
# Jobs to build the two channels in Socializer. # Jobs to build the two channels in Socializer.
# Currently using python 3.7.5
variables: variables:
PYTHON3-32: "C:\\python37-32\\python.exe" PYTHON3-32: "C:\\python37-32\\python.exe"
PYTHON3-64: "C:\\python37-32\\python.exe" PYTHON3-64: "C:\\python37-32\\python.exe"
PYINSTALLER: "C:\\python37-32\\scripts\\pyinstaller.exe" PYINSTALLER: "C:\\python37-32\\scripts\\pyinstaller.exe"
PYTHON2: "C:\\python27\\python.exe"
NSIS: "C:\\nsis\\makensis.exe" NSIS: "C:\\nsis\\makensis.exe"
### Job to make some tests (ToDo: I need to improve the current testing stuff. Currently those tests fails)
test_py3: test_py3:
stage: test stage: test
tags: tags:
- windows10 - windows10
before_script: before_script:
- '%PYTHON3-32% -v' - '%PYTHON3-32% -V'
- '%PYTHON3-32% -m pip install --upgrade pip' - '%PYTHON3-32% -m pip install --upgrade pip'
- '%PYTHON3-32% -m pip install --upgrade -r requirements.txt' - '%PYTHON3-32% -m pip install --upgrade -r requirements.txt'
only: only:
@ -22,18 +23,20 @@ test_py3:
- '%PYTHON3-32% -m coverage report --omit="test*"' - '%PYTHON3-32% -m coverage report --omit="test*"'
coverage: '/TOTAL.+ ([0-9]{1,3}%)/' coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
# Create documentation in all available languages so we'll have it at http://socializer.su/documentation
# this job is triggered on every commit to master, so we always will display the latest available version of the documentation in the website.
documentation: documentation:
type: deploy type: deploy
tags: tags:
- windows10 - windows10
before_script: before_script:
- '%PYTHON3-32% -v' - '%PYTHON3-32% -V'
script: script:
- copy changelog.md doc\changelog.md - copy changelog.md doc\changelog.md
- cd doc - cd doc
- '%PYTHON2% documentation_importer.py' - '%PYTHON3-32% documentation_importer.py'
- cd ..\src - cd ..\src
- '%PYTHON2% ..\doc\generator.py' - '%PYTHON3-32% ..\doc\generator.py'
- 'move documentation ..\' - 'move documentation ..\'
only: only:
- master - master
@ -41,23 +44,25 @@ documentation:
paths: paths:
- documentation - documentation
name: socializer_documentation name: socializer_documentation
expire_in: 1 day expire_in: 90 days
# Create alpha version in Python 3.7 by using pyinstaller
# This job is about to be removed on november 27.
alpha_python3: alpha_python3:
type: deploy type: deploy
tags: tags:
- windows10 - windows10
before_script: before_script:
- '%PYTHON3-32% -v' - '%PYTHON3-32% -V'
- '%PYTHON3-32% -m pip install --upgrade pip' - '%PYTHON3-32% -m pip install --upgrade pip'
- '%PYTHON3-32% -m pip install --upgrade -r requirements.txt' - '%PYTHON3-32% -m pip install --upgrade -r requirements.txt'
- '%PYTHON3-32% -m pip uninstall enum34 -y' - '%PYTHON3-32% -m pip uninstall enum34 -y'
script: script:
- copy changelog.md doc\changelog.md - copy changelog.md doc\changelog.md
- cd doc - cd doc
- '%PYTHON2% documentation_importer.py' - '%PYTHON3-32% documentation_importer.py'
- cd ..\src - cd ..\src
- '%PYTHON2% ..\doc\generator.py' - '%PYTHON3-32% ..\doc\generator.py'
- '%PYTHON3-32% write_version_data.py' - '%PYTHON3-32% write_version_data.py'
- '%PYINSTALLER% main.spec' - '%PYINSTALLER% main.spec'
- cd .. - cd ..
@ -79,21 +84,23 @@ alpha_python3:
name: socializer_py3 name: socializer_py3
expire_in: 1 day expire_in: 1 day
# Creates a version built with Python 3.7 and cx-freeze
# this is going to be the current alpha version after november 27.
alpha: alpha:
type: deploy type: deploy
tags: tags:
- windows10 - windows10
before_script: before_script:
- '%PYTHON3-32% -v' - '%PYTHON3-32% -V'
- '%PYTHON3-32% -m pip install --upgrade pip cx_freeze' - '%PYTHON3-32% -m pip install --upgrade pip cx_freeze'
- '%PYTHON3-32% -m pip install --upgrade -r requirements.txt' - '%PYTHON3-32% -m pip install --upgrade -r requirements.txt'
- '%PYTHON3-32% -m pip uninstall enum34 -y' - '%PYTHON3-32% -m pip uninstall enum34 -y'
script: script:
- copy changelog.md doc\changelog.md - copy changelog.md doc\changelog.md
- cd doc - cd doc
- '%PYTHON2% documentation_importer.py' - '%PYTHON3-32% documentation_importer.py'
- cd ..\src - cd ..\src
- '%PYTHON2% ..\doc\generator.py' - '%PYTHON3-32% ..\doc\generator.py'
- '%PYTHON3-32% write_version_data.py' - '%PYTHON3-32% write_version_data.py'
- '%PYTHON3-32% setup.py build' - '%PYTHON3-32% setup.py build'
- cd .. - cd ..
@ -115,21 +122,22 @@ alpha:
name: socializer_alpha name: socializer_alpha
expire_in: 1 day expire_in: 1 day
# Generates a new stable version of the application every tag.
stable: stable:
type: deploy type: deploy
tags: tags:
- windows - windows
before_script: before_script:
- '%PYTHON3-32% -v' - '%PYTHON3-32% -V'
- '%PYTHON3-32% -m pip install --upgrade pip' - '%PYTHON3-32% -m pip install --upgrade pip'
- '%PYTHON3-32% -m pip install --upgrade -r requirements.txt' - '%PYTHON3-32% -m pip install --upgrade -r requirements.txt'
- '%PYTHON3-32% -m pip uninstall enum34 -y' - '%PYTHON3-32% -m pip uninstall enum34 -y'
script: script:
- copy changelog.md doc\changelog.md - copy changelog.md doc\changelog.md
- cd doc - cd doc
- '%PYTHON2% documentation_importer.py' - '%PYTHON3-32% documentation_importer.py'
- cd ..\src - cd ..\src
- '%PYTHON2% ..\doc\generator.py' - '%PYTHON3-32% ..\doc\generator.py'
- '%PYTHON3-32% write_version_data.py' - '%PYTHON3-32% write_version_data.py'
- '%PYTHON3-32% setup.py build' - '%PYTHON3-32% setup.py build'
- '%NSIS% installer.nsi' - '%NSIS% installer.nsi'