Commit ba7f05b9 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Prepare gitlab ci file for shell runner

parent 056a80a2
......@@ -3,42 +3,60 @@ stages:
- deploy
#variables:
# no_proxy: .esrf.fr,localhost
variables:
PROJECT_NAME: "nabu"
LOCAL_REPO_SHELL: "/dev/shm/gitlab_ci/nabu"
VENV_DIR_SHELL: /dev/shm/gitlab_ci/nabu/venv
LOCAL_REPO_DOCKER: "/root/gitlab_ci/nabu"
VENV_DIR_DOCKER: "/root/gitlab_ci/nabu/venv"
USE_CLEAN_VENV: "false"
test:
linux_base:
stage: test
image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
before_script:
- arch
- unset HTTP_PROXY
- unset HTTPS_PROXY
- mkdir -p $HOME/.venv/py3
- python -m venv $HOME/.venv/py3
- source $HOME/.venv/py3/bin/activate
- python --version
- which python
- pip install --upgrade pip
- pip install --upgrade setuptools
- pip install --upgrade numpy
- pip install silx
- if [ ! -d $LOCAL_REPO ]; then mkdir -p $LOCAL_REPO; fi
- if [ -d $VENV_DIR ]; then if [ "$USE_CLEAN_VENV" == "true" ]; then rm -rf $VENV_DIR; fi; fi
- python3 -m venv $VENV_DIR
- source $VENV_DIR/bin/activate
- echo "Running $(python --version) from $(which python) on $(hostname) ($(arch))"
- pip install --upgrade pip setuptools wheel
- pip install --upgrade numpy silx
- pip install scipy
- if [[ $CI_RUNNER_TAGS == *"gpu"* ]]; then pip install pycuda scikit-cuda; fi
script:
# tomoscan does not advertise its dependencies in setup.py - see tomoscan/-/issues/9
- pip install lxml
- pip install git+https://gitlab.esrf.fr/tomotools/tomoscan.git
- python -m pip install .
- nabu-test
# allow_failure: true
pages:
stage: deploy
linux_shell:
extends: linux_base
variables:
LOCAL_REPO: $LOCAL_REPO_SHELL
VENV_DIR: ${VENV_DIR_SHELL}
tags:
- shell
linux_docker:
extends: linux_base
image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
variables:
LOCAL_REPO: $LOCAL_REPO_DOCKER
VENV_DIR: $VENV_DIR_DOCKER
tags:
- docker
pages_base:
stage: deploy
before_script:
- apt install --yes pandoc
- mkdir -p $HOME/.venv/py3
- python -m venv $HOME/.venv/py3
- source $HOME/.venv/py3/bin/activate
- source $VENV_DIR/bin/activate
- pip install --upgrade pip
- pip install sphinx cloud_sptheme nbsphinx recommonmark numpy
script:
......@@ -50,5 +68,24 @@ pages:
artifacts:
paths:
- public
only:
- master
pages_shell:
extends: pages_base
variables:
LOCAL_REPO: $LOCAL_REPO_SHELL
VENV_DIR: $VENV_DIR_SHELL
tags:
- shell
pages_docker:
extends: pages_base
image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
variables:
LOCAL_REPO: $LOCAL_REPO_DOCKER
VENV_DIR: $VENV_DIR_DOCKER
tags:
- docker
before_script:
- apt install --yes pandoc
Supports Markdown
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