.gitlab-ci.yml 809 Bytes
Newer Older
Daniel Scheffler's avatar
Daniel Scheffler committed
1
2
3
before_script:
  - git lfs pull

4
test_gms_preprocessing:
Daniel Scheffler's avatar
Daniel Scheffler committed
5
6
7
8
  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
18
    when: always
Daniel Scheffler's avatar
Daniel Scheffler committed
19
20
21
22

pages:
  stage: deploy
  dependencies:
23
    - test_gms_preprocessing
Daniel Scheffler's avatar
Daniel Scheffler committed
24
25
26
  script:
    - mkdir -p public/coverage
    - cp -r htmlcov/* public/coverage/
Daniel Scheffler's avatar
Daniel Scheffler committed
27
    - mkdir -p public/nosetests_reports
28
    - 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