.gitlab-ci.yml 4.6 KB
Newer Older
payno's avatar
payno committed
1 2 3 4 5 6 7 8 9
stages:
  - test

variables:
  http_proxy: http://proxy.esrf.fr:3128
  https_proxy: http://proxy.esrf.fr:3128
  no_proxy: .esrf.fr,localhost


10 11 12 13 14 15 16
.build_template: &test_linux_template_pymca
  stage: test
  before_script:
    - 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}
payno's avatar
payno committed
17
    - export EST_TEST_PROCESS=False
18 19 20 21 22 23 24 25 26 27
    - 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
  script:
    - source ./ci/install_scripts.sh
    - install_orange3
    - install_anyqt 'master'
    - python -m pip install fabio --upgrade --pre
28
    - python -m pip install silx --upgrade --pre
29
    - python -m pip install pymca --upgrade --pre
30
    - git submodule update --init --recursive
31
    - python -m pip install .
payno's avatar
payno committed
32
    - /usr/bin/xvfb-run --server-args="-screen 0 1024x768x24" -a est test -v
33 34 35 36 37 38 39 40 41


.build_template: &test_linux_template_larch
  stage: test
  before_script:
    - 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}
42
    - export LD_LIBRARY_PATH='${LD_LIBRARY_PATH}:/usr/local/lib'
payno's avatar
payno committed
43
    - export EST_TEST_PROCESS=False
44 45 46 47 48 49 50 51 52 53
    - 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
  script:
    - source ./ci/install_scripts.sh
    - install_orange3
    - install_anyqt 'master'
    - python -m pip install fabio --upgrade --pre
54
#    - python -m pip install -r requirements.txt
55
    - python -m pip install silx --upgrade --pre
56
    - install_larch
57
    - git submodule update --init --recursive
58
    - python -m pip install .
payno's avatar
payno committed
59
    - /usr/bin/xvfb-run --server-args="-screen 0 1024x768x24" -a est test -v
60 61 62


.build_template: &test_linux_template_pymca_larch
payno's avatar
payno committed
63 64 65 66 67 68
  stage: test
  before_script:
    - 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}
69
    - export LD_LIBRARY_PATH='${LD_LIBRARY_PATH}:/usr/local/lib'
payno's avatar
payno committed
70
    - export EST_TEST_PROCESS=False
payno's avatar
payno committed
71 72 73 74 75 76 77 78 79 80
    - 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
  script:
    - source ./ci/install_scripts.sh
    - install_orange3
    - install_anyqt 'master'
    - python -m pip install fabio --upgrade --pre
81
#    - python -m pip install -r requirements.txt
82
    - python -m pip install silx --upgrade --pre
83 84
    - python -m pip install pymca --upgrade --pre
    - install_larch
85
    - git submodule update --init --recursive
86
    - python -m pip install .
payno's avatar
payno committed
87
    - /usr/bin/xvfb-run --server-args="-screen 0 1024x768x24" -a est test -v
payno's avatar
payno committed
88 89


90 91 92 93 94 95
test:python3.5-stretch-pyqt5_pymca:
  image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
  <<: *test_linux_template_pymca


test:python3.5-stretch-pyqt5_larch:
96
  image: docker-registry.esrf.fr/dau/est:python3.7_stretch_pyqt5_gtk3_wxpython
97
  <<: *test_linux_template_larch
98 99 100


test:python3.5-stretch-pyqt5_pymca_larch:
101
  image: docker-registry.esrf.fr/dau/est:python3.7_stretch_pyqt5_gtk3_wxpython
102
  <<: *test_linux_template_pymca_larch
103 104


payno's avatar
payno committed
105
test:test-est-tutorials_pymca:
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
  type: test
  image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
  before_script:
    - arch
    - apt-get install octave --yes
    - 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
    - python -m pip install ipykernel
123
    - python -m pip install pymca --upgrade --pre
124
    - python -m pip install silx --upgrade --pre
125
    - git submodule update --init --recursive
126
    - python -m pip install .
127
    - ls doc/tutorials/
128 129

  script:
payno's avatar
payno committed
130
    - /usr/bin/xvfb-run --server-args="-screen 0 1024x768x24" -a jupyter nbconvert --to notebook --execute doc/tutorials/pymca_xas_process.ipynb