.gitlab-ci.yml 782 Bytes
Newer Older
Daniel Scheffler's avatar
Daniel Scheffler committed
1
2
3
4
5
6
7
8
before_script:
  - git lfs pull

test_geomultisens:
  script:
    - source /root/anaconda3/bin/activate
    - export GDAL_DATA=/root/anaconda3/share/gdal
    - export PYTHONPATH=$PYTHONPATH:/root  # /root <- directory needed later
9
    - pip install rednose
10
    - make nosetests
Daniel Scheffler's avatar
Daniel Scheffler committed
11
12
13
14
15
    - make docs
  artifacts:
    paths:
    - htmlcov/
    - docs/_build/html/
16
17
    - nosetests.html
    - nosetests.xml
Daniel Scheffler's avatar
Daniel Scheffler committed
18
19
20
21
22
23
24
25

pages:
  stage: deploy
  dependencies:
    - test_geomultisens
  script:
    - mkdir -p public/coverage
    - cp -r htmlcov/* public/coverage/
Daniel Scheffler's avatar
Daniel Scheffler committed
26
    - mkdir -p public/nosetests_reports
27
    - cp nosetests.* public/nosetests_reports/
Daniel Scheffler's avatar
Daniel Scheffler committed
28
29
30
31
32
33
34
35
36
    - mkdir -p public/doc
    - cp -r docs/_build/html/* public/doc/

  artifacts:
    paths:
      - public
    expire_in: 30 days
  only:
    - master