.gitlab-ci.yml 803 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
    - make clean-test
Daniel Scheffler's avatar
Daniel Scheffler committed
10
    - pip install nose2
11
    - make nosetests
Daniel Scheffler's avatar
Daniel Scheffler committed
12
13
14
15
16
    - make docs
  artifacts:
    paths:
    - htmlcov/
    - docs/_build/html/
17
18
    - nosetests.xml
    - nosetests.html
Daniel Scheffler's avatar
Daniel Scheffler committed
19
20
21
22
23
24
25
26

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

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