File: .gitlab-ci.yml

package info (click to toggle)
macsyfinder 1.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 54,800 kB
  • sloc: python: 6,060; xml: 780; makefile: 156; sh: 12
file content (50 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (2)
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
46
47
48
49
50
stages:
  - test
  - coverage
  - pages

variables:
  MACSY_HOME: ${CI_PROJECT_DIR}
  MACSY_VERSION: ${CI_COMMIT_REF_NAME}

testing:
  stage: test
  image: registry-gitlab.pasteur.fr/gem/macsyfinder:run_dep
  script:
    - python ${CI_PROJECT_DIR}/tests.py -vvv
  except:
    - /^feat.*$/
    - /^fix.*$/

coverage:
  stage: coverage
  image: registry-gitlab.pasteur.fr/gem/macsyfinder:coverage
  script:
    - cd ${CI_PROJECT_DIR}
    - python-coverage run --source=macsypy tests.py --unit
    - python-coverage html
    - python-coverage report
  artifacts:
    paths:
      - htmlcov/
  except:
    - /^feat.*$/
    - /^fix.*$/

pages:
  stage: pages
  image: registry-gitlab.pasteur.fr/gem/macsyfinder:pages
  dependencies:
    - coverage
  script:
    - cd ${CI_PROJECT_DIR}/doc/
    - make html
    - cd ${CI_PROJECT_DIR}
    - mv ${CI_PROJECT_DIR}/doc/_build/html/ public
    - mv htmlcov public/
  artifacts:
    paths:
      - public
  only:
    - master