.gitlab-ci.yml 1.28 KB
Newer Older
Pierre Paleo's avatar
Pierre Paleo committed
1
2
3
4
stages:
  - deploy


Pierre Paleo's avatar
Pierre Paleo committed
5
6
#variables:
#  no_proxy: .esrf.fr,localhost
Pierre Paleo's avatar
Pierre Paleo committed
7

Pierre Paleo's avatar
Pierre Paleo committed
8
9

test:
Pierre Paleo's avatar
Pierre Paleo committed
10
  stage: test
Pierre Paleo's avatar
Pierre Paleo committed
11
  image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
Pierre Paleo's avatar
Pierre Paleo committed
12
13
  before_script:
    - arch
Pierre Paleo's avatar
Pierre Paleo committed
14
15
    - unset HTTP_PROXY
    - unset HTTPS_PROXY
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
    - python --version
    - which python
    - pip install --upgrade pip
    - pip install --upgrade setuptools
    - pip install --upgrade numpy
24
25
    # Install a version of silx containing not-released-yet features needed for Nabu
    # Hopefully this wont be needed after the 0.12 release
Pierre Paleo's avatar
Pierre Paleo committed
26
    - pip install silx
Pierre Paleo's avatar
Pierre Paleo committed
27
  script:
Pierre Paleo's avatar
Pierre Paleo committed
28
    - pip install git+https://gitlab.esrf.fr/tomotools/tomoscan.git
Pierre Paleo's avatar
Pierre Paleo committed
29
30
    - python -m pip install .
    - nabu-test
Pierre Paleo's avatar
Pierre Paleo committed
31
#  allow_failure: true
Pierre Paleo's avatar
Pierre Paleo committed
32
33
34

pages:
  stage: deploy
Pierre Paleo's avatar
Pierre Paleo committed
35
  image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
Pierre Paleo's avatar
Pierre Paleo committed
36
  before_script:
Pierre Paleo's avatar
Pierre Paleo committed
37
    - apt install pandoc
Pierre Paleo's avatar
Pierre Paleo committed
38
39
40
    - mkdir -p $HOME/.venv/py3
    - python -m venv $HOME/.venv/py3
    - source $HOME/.venv/py3/bin/activate
Pierre Paleo's avatar
Pierre Paleo committed
41
    - pip install --upgrade pip
Pierre Paleo's avatar
Pierre Paleo committed
42
    - pip install sphinx cloud_sptheme nbsphinx recommonmark numpy
Pierre Paleo's avatar
Pierre Paleo committed
43
  script:
Pierre Paleo's avatar
Pierre Paleo committed
44
45
    - cd doc
    - make html
Pierre Paleo's avatar
Pierre Paleo committed
46
47
48
    - cd ..
    - mkdir public
    - cp -rv doc/_build/html/* public/
Pierre Paleo's avatar
Pierre Paleo committed
49
50
  artifacts:
    paths:
Pierre Paleo's avatar
Pierre Paleo committed
51
      - public
Pierre Paleo's avatar
Pierre Paleo committed
52
53
  only:
    - master