.gitlab-ci.yml 981 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
10
    #- pip install nose nose2 nose-htmloutput
    - yum install -y gdb
11
    - cp backtrace /root/
12
13
    #- gdb nosetests -ex 'set pagination off' -ex backtrace -ex quit
    - bash seg_wrapper.sh nosetests
Daniel Scheffler's avatar
Daniel Scheffler committed
14
    #- make coverage
15
    #-- make nosetests
Daniel Scheffler's avatar
Daniel Scheffler committed
16
17
18
19
20
    - make docs
  artifacts:
    paths:
    - htmlcov/
    - docs/_build/html/
21
22
    - nosetests.html
    - nosetests.xml
Daniel Scheffler's avatar
Daniel Scheffler committed
23
24
25
26
27
28
29
30

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

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