.gitlab-ci.yml 1.1 KB
Newer Older
Pierre Paleo's avatar
Pierre Paleo committed
1
2
3
4
5
6
7
8
9
10
11
stages:
  - deploy

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


.build_template: &test_linux_template
  stage: test
Pierre Paleo's avatar
Pierre Paleo committed
12
  image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
Pierre Paleo's avatar
Pierre Paleo committed
13
14
  before_script:
    - arch
Pierre Paleo's avatar
Pierre Paleo committed
15
    - echo $HOME
Pierre Paleo's avatar
Pierre Paleo committed
16
17
18
    - mkdir -p $HOME/.venv/py3
    - python -m venv $HOME/.venv/py3
    - source $HOME/.venv/py3/bin/activate
Pierre Paleo's avatar
Pierre Paleo committed
19
20
21
22
23
24
25
26
27
28
29
    - python --version
    - which python
    - pip install --upgrade pip
    - pip install --upgrade setuptools
    - pip install --upgrade numpy
  script:
    - python -m pip install .
    - nabu-test

pages:
  stage: deploy
Pierre Paleo's avatar
Pierre Paleo committed
30
  image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
Pierre Paleo's avatar
Pierre Paleo committed
31
  before_script:
Pierre Paleo's avatar
Pierre Paleo committed
32
33
34
    - mkdir -p $HOME/.venv/py3
    - python -m venv $HOME/.venv/py3
    - source $HOME/.venv/py3/bin/activate
Pierre Paleo's avatar
Pierre Paleo committed
35
    - pip install --upgrade pip
Pierre Paleo's avatar
Pierre Paleo committed
36
    - pip install sphinx sphinx-corlab-theme nbsphinx recommonmark
Pierre Paleo's avatar
Pierre Paleo committed
37
  script:
Pierre Paleo's avatar
Pierre Paleo committed
38
39
40
    - cd doc
    - make html
    - mkdir .public
Pierre Paleo's avatar
Pierre Paleo committed
41
    - cp -rv _build/html/* .public/
Pierre Paleo's avatar
Pierre Paleo committed
42
43
44
    - mv .public public
  artifacts:
    paths:
Pierre Paleo's avatar
Pierre Paleo committed
45
      - doc/public
Pierre Paleo's avatar
Pierre Paleo committed
46
47
  only:
    - master