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


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

Pierre Paleo's avatar
Pierre Paleo committed
9
10

test:
Pierre Paleo's avatar
Pierre Paleo committed
11
  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
16
    - unset HTTP_PROXY
    - unset HTTPS_PROXY
Pierre Paleo's avatar
Pierre Paleo committed
17
18
19
    - mkdir -p $HOME/.venv/py3
    - python -m venv $HOME/.venv/py3
    - source $HOME/.venv/py3/bin/activate
Pierre Paleo's avatar
Pierre Paleo committed
20
21
22
23
24
    - python --version
    - which python
    - pip install --upgrade pip
    - pip install --upgrade setuptools
    - pip install --upgrade numpy
25
26
    # 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
27
    - pip install silx
Pierre Paleo's avatar
Pierre Paleo committed
28
  script:
Pierre Paleo's avatar
Pierre Paleo committed
29
    - pip install git+https://gitlab.esrf.fr/tomotools/tomoscan.git
Pierre Paleo's avatar
Pierre Paleo committed
30
31
    - python -m pip install .
    - nabu-test
Pierre Paleo's avatar
Pierre Paleo committed
32
#  allow_failure: true
Pierre Paleo's avatar
Pierre Paleo committed
33
34
35

pages:
  stage: deploy
Pierre Paleo's avatar
Pierre Paleo committed
36
  image: docker-registry.esrf.fr/dau/tomwer:python3.5_stretch_pyqt5
Pierre Paleo's avatar
Pierre Paleo committed
37
  before_script:
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 sphinx-corlab-theme 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