Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
9e3ffd6230 | |||
bdc71f15c1 | |||
c3398ef4e5 | |||
9b33f1152b | |||
dc1f2a92cc | |||
e9ae52bb60 | |||
982887ab85 | |||
19e934e873 | |||
8604d695c6 | |||
a55295829f | |||
4181d597a8 | |||
c4869fb0cd |
@ -1,43 +1,58 @@
|
|||||||
stages:
|
stages:
|
||||||
- build-and-publish
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
- publish
|
||||||
|
- cleanup
|
||||||
|
|
||||||
build-and-publish:
|
workflow:
|
||||||
stage: build-and-publish
|
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
script:
|
variables:
|
||||||
|
BUILD_PATH: /home/pyzebra/build-prod
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
variables:
|
||||||
|
BUILD_PATH: /home/pyzebra/build-test
|
||||||
|
|
||||||
|
default:
|
||||||
|
before_script:
|
||||||
- source /opt/miniconda3/etc/profile.d/conda.sh
|
- source /opt/miniconda3/etc/profile.d/conda.sh
|
||||||
|
|
||||||
|
build-job:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
- conda config --add channels conda-forge
|
- conda config --add channels conda-forge
|
||||||
- conda config --set solver libmamba
|
- conda config --set solver libmamba
|
||||||
- conda config --set anaconda_upload yes
|
- conda build --no-anaconda-upload --output-folder $BUILD_PATH ./conda-recipe
|
||||||
- conda build --token $ANACONDA_TOKEN /opt/pyzebra/conda-recipe
|
|
||||||
|
|
||||||
deploy-test:
|
deploy-test-job:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
environment: testing
|
environment: testing
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
script:
|
script:
|
||||||
- cd /opt/pyzebra
|
|
||||||
- git pull origin main --tags
|
|
||||||
- source /opt/miniconda3/etc/profile.d/conda.sh
|
|
||||||
- conda activate test
|
- conda activate test
|
||||||
- conda build ./conda-recipe
|
- conda install --channel $BUILD_PATH --force-reinstall pyzebra -y
|
||||||
- conda install --use-local --only-deps pyzebra -y
|
|
||||||
- conda build purge-all
|
|
||||||
- sudo systemctl restart pyzebra-test.service
|
- sudo systemctl restart pyzebra-test.service
|
||||||
|
|
||||||
deploy-prod:
|
deploy-prod-job:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
environment: production
|
environment: production
|
||||||
needs: ["build-and-publish"]
|
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
when: delayed
|
|
||||||
start_in: 5 seconds
|
|
||||||
script:
|
script:
|
||||||
- source /opt/miniconda3/etc/profile.d/conda.sh
|
|
||||||
- conda activate prod
|
- conda activate prod
|
||||||
- conda update pyzebra -y
|
- conda install --channel $BUILD_PATH pyzebra -y
|
||||||
- sudo systemctl restart pyzebra-prod.service
|
- sudo systemctl restart pyzebra-prod.service
|
||||||
|
|
||||||
|
publish-job:
|
||||||
|
stage: publish
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
script:
|
||||||
|
- conda activate base
|
||||||
|
- anaconda --token $ANACONDA_TOKEN upload $(conda build --output-folder $BUILD_PATH ./conda-recipe --output)
|
||||||
|
|
||||||
|
cleanup-job:
|
||||||
|
stage: cleanup
|
||||||
|
script:
|
||||||
|
- conda build purge-all
|
||||||
|
@ -28,7 +28,7 @@ requirements:
|
|||||||
|
|
||||||
|
|
||||||
about:
|
about:
|
||||||
home: https://github.com/paulscherrerinstitute/pyzebra
|
home: https://gitlab.psi.ch/zebra/pyzebra
|
||||||
summary: {{ data['description'] }}
|
summary: {{ data['description'] }}
|
||||||
license: GNU GPLv3
|
license: GNU GPLv3
|
||||||
license_file: LICENSE
|
license_file: LICENSE
|
||||||
|
@ -6,4 +6,4 @@ from pyzebra.sxtal_refgen import *
|
|||||||
from pyzebra.utils import *
|
from pyzebra.utils import *
|
||||||
from pyzebra.xtal import *
|
from pyzebra.xtal import *
|
||||||
|
|
||||||
__version__ = "0.7.9"
|
__version__ = "0.7.10"
|
||||||
|
@ -364,7 +364,7 @@ def create():
|
|||||||
_update_proj_plots()
|
_update_proj_plots()
|
||||||
|
|
||||||
proj_auto_checkbox = CheckboxGroup(
|
proj_auto_checkbox = CheckboxGroup(
|
||||||
labels=["Projections Intensity Range"], active=[0], width=145, margin=[10, 5, 0, 5]
|
labels=["Projections Intensity Range:"], active=[0], width=145, margin=[10, 5, 0, 5]
|
||||||
)
|
)
|
||||||
proj_auto_checkbox.on_change("active", proj_auto_checkbox_callback)
|
proj_auto_checkbox.on_change("active", proj_auto_checkbox_callback)
|
||||||
|
|
||||||
|
@ -689,7 +689,7 @@ def create():
|
|||||||
_update_image()
|
_update_image()
|
||||||
|
|
||||||
main_auto_checkbox = CheckboxGroup(
|
main_auto_checkbox = CheckboxGroup(
|
||||||
labels=["Frame Intensity Range"], active=[0], width=145, margin=[10, 5, 0, 5]
|
labels=["Frame Intensity Range:"], active=[0], width=145, margin=[10, 5, 0, 5]
|
||||||
)
|
)
|
||||||
main_auto_checkbox.on_change("active", main_auto_checkbox_callback)
|
main_auto_checkbox.on_change("active", main_auto_checkbox_callback)
|
||||||
|
|
||||||
@ -721,7 +721,7 @@ def create():
|
|||||||
_update_proj_plots()
|
_update_proj_plots()
|
||||||
|
|
||||||
proj_auto_checkbox = CheckboxGroup(
|
proj_auto_checkbox = CheckboxGroup(
|
||||||
labels=["Projections Intensity Range"], active=[0], width=145, margin=[10, 5, 0, 5]
|
labels=["Projections Intensity Range:"], active=[0], width=145, margin=[10, 5, 0, 5]
|
||||||
)
|
)
|
||||||
proj_auto_checkbox.on_change("active", proj_auto_checkbox_callback)
|
proj_auto_checkbox.on_change("active", proj_auto_checkbox_callback)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user