.gitlab-ci.yml 939 Bytes
Newer Older
Pierre Paleo's avatar
Pierre Paleo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
  before_script:
    - arch
    - mkdir -p $HOME/.venv/py35
    - python3 -m venv $HOME/.venv/py35
    - source $HOME/.venv/py35/bin/activate
    - 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
  before_script:
    -  
  script:
    - mkdir -p $HOME/.venv/py35
    - python3 -m venv $HOME/.venv/py35
    - source $HOME/.venv/py35/bin/activate
    - pip install --upgrade pip
    - pip install sphinx
    - cd doc
    - make html
    - mkdir .public
    - cp -r _build/html/* .public
    - mv .public public
  artifacts:
    paths:
      - public
  only:
    - master