Commit c74cbaae authored by tom's avatar tom
Browse files

Update .gitlab-ci.yml

parent 9e97d89e
# image: "python:3.6"
before_script:
- C:\Users\user\anaconda3\envs\launch\python.exe -m pip install -r pip_requirements.txt
BuildTest-Python:
stage: build
script:
# running some test here
#- C:\Users\user\anaconda3\envs\launch\python.exe test.py
tags:
- python
only:
refs:
- merge_request
variables:
- $CI_MERGE_REQUEST_TITLE =~ /Draft/
BuildTest:
stage: build
script:
# build exe
#- C:\Users\user\anaconda3\envs\launch\Scripts\pyinstaller.exe MS.py -n MS
# build cython
#- C:\Users\user\anaconda3\envs\launch\python.exe .\auto_build\auto_build.py
# move cython modules into dist/MS
#- C:\Users\user\anaconda3\envs\launch\python.exe .\auto_build\mv_module.py
#test exe
#- C:\Users\user\anaconda3\envs\launch\python.exe test_exe.py
artifacts:
paths:
- dist
expire_in: 1 day
#currently using online CI
tags:
- python
only:
refs:
- merge_request
variables:
- $CI_MERGE_REQUEST_TITLE =~ /Draft/
BuildRelease:
stage: build
script:
# running some test here
#- C:\Users\user\anaconda3\envs\management_service\python.exe test.py
# running build here
#- C:\Users\user\anaconda3\envs\management_service\Scripts\pyinstaller.exe MS.py --clean --noupx -F
artifacts:
paths:
- dist
expire_in: 5 day
#currently using online CI
tags:
- python
only:
- tags
ReleaseDeploy:
stage: deploy
script:
- echo "$CI_PROJECT_ID"
- echo "$RELEASE_PROJECT_ID"
- echo "$CI_COMMIT_MESSAGE"
#running release here
#currently using online CI
tags:
- python
only:
- tags
\ No newline at end of file
#
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