.gitlab-ci.yml 3.57 KB
Newer Older
Payno's avatar
Payno committed
1

payno's avatar
payno committed
2 3
stages:
  - test
4 5 6 7 8

variables:
  http_proxy: http://proxy.esrf.fr:3128
  https_proxy: http://proxy.esrf.fr:3128
  no_proxy: .esrf.fr,localhost
9
  ORANGE_WEB_LOG: 'False'
10 11


payno's avatar
payno committed
12 13
.build_template: &test_linux_template
  stage: test
payno's avatar
payno committed
14
  before_script:
Payno's avatar
Payno committed
15
    - arch
payno's avatar
payno committed
16
    - export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3/dist-packages/"
Payno's avatar
Payno committed
17
    - export LD_LIBRARY_PATH=/lib/i386-linux-gnu/:${LD_LIBRARY_PATH}
18
    - export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu/:${LD_LIBRARY_PATH}
19
    - export ORANGE_WEB_LOG='False'
Payno's avatar
Payno committed
20 21 22
    - python --version
    - python -m pip install pip --upgrade
    - python -m pip install setuptools --upgrade
payno's avatar
payno committed
23
    - python -m pip install numpy --upgrade
Payno's avatar
Payno committed
24
    - python -m pip install matplotlib
payno's avatar
payno committed
25
  script:
26
    - source ./ci/install_scripts.sh
27
    - install_orange3
28
    - install_anyqt 'master'
Payno's avatar
Payno committed
29
    - python -m pip install -r requirements.txt
30
    - python -m pip install -r requirements-test.txt
31 32
    - python -m pip install fabio --upgrade --pre
    - python -m pip install silx --upgrade --pre
33
    - python -m pip install .
Payno's avatar
Payno committed
34
    - python -m tomwer --help
payno's avatar
payno committed
35
    - /usr/bin/xvfb-run --server-args="-screen 0 1024x768x24" -a python tomwer test -v
Payno's avatar
Payno committed
36 37


payno's avatar
payno committed
38 39 40 41 42
test:python3.5-stretch-pyqt5:
  image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
  <<: *test_linux_template


payno's avatar
payno committed
43 44
test:python3.7_stretch_pyqt5:
  image: docker-registry.esrf.fr/dau/tomwer:python3.7_stretch_pyqt5
payno's avatar
payno committed
45
  <<: *test_linux_template
46 47


48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
test:windows-conda:
  type: test
  image: python:3-windowsservercore
  tags:
    - win
  before_script:
    - SET "PATH=C:\\miniconda3;C:\\miniconda3\\Scripts;%PATH%"
    - SET "PATH=C:\\miniconda3\\include;%PATH%"
    - SET "PATH=C:\\miniconda3\\python3.7\\site-packages\\numpy\\core\\include;%PATH%"
    - SET "PATH=C:\\windows\\system32\\config\\systemprofile\\appdata\\roaming\\python\\python37\\site-packages;%PATH%"
    - SET "PATH=C:\\windows\\system32\\config\\systemprofile\\appdata\\roaming\\python\\python37\\site-packages\\numpy\\core\\include;%PATH%"
    - SET "ORANGE_WEB_LOG='False'"
    - pip install virtualenv
    - virtualenv venv
    - call venv\\Scripts\\activate.bat
    - python --version
    - pip install pip --upgrade
    - pip install setuptools --upgrade
    - pip install numpy --upgrade
  script:
68 69
    - python -m pip install -r requirements.txt
    - python -m pip install -r requirements-test.txt
70 71
    - python -m pip install fabio --upgrade --pre
    - python -m pip install silx --upgrade --pre
72
    - python -m pip install .
73
    - python -m tomwer --help
74
    - python run_tests.py --no-gui -v
75 76


77
test:test-tomwer-tutorials:
78
  type: test
79
  image: docker-registry.esrf.fr/dau/tomwer:python3.7_buster_pyqt5
payno's avatar
payno committed
80
  before_script:
81 82 83 84 85 86 87 88 89 90 91 92
    - arch
    - export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3/dist-packages/"
    - export LD_LIBRARY_PATH=/lib/i386-linux-gnu/:${LD_LIBRARY_PATH}
    - export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu/:${LD_LIBRARY_PATH}
    - export ORANGE_WEB_LOG='False'
    - python --version
    - python -m pip install pip --upgrade
    - python -m pip install setuptools --upgrade
    - python -m pip install numpy --upgrade
    - python -m pip install matplotlib
    - python -m pip install jupyter_client
    - python -m pip install nbconvert
93
    - python -m pip install ipykernel
94
    - python -m pip install -r requirements-dev.txt
95
    - python -m pip install -r requirements-test.txt
96 97
    - python -m pip install fabio --upgrade --pre
    - python -m pip install silx --upgrade --pre
98
    - python -m pip install .
99 100
    - mkdir tmp_dir
    - cd tmp_dir
payno's avatar
payno committed
101
  script:
102
    - /usr/bin/xvfb-run --server-args="-screen 0 1024x768x24" -a jupyter nbconvert --to notebook --execute ../doc/tutorials/workflow_operation.ipynb