.gitlab-ci.yml 1.6 KB
Newer Older
Dominique Benielli's avatar
Dominique Benielli committed
1
2
# run the test suite
tests:
Baptiste Bauvin's avatar
Baptiste Bauvin committed
3
    image: registry.gitlab.lis-lab.fr:5005/baptiste.bauvin/summit/ubuntu:18.04
Dominique Benielli's avatar
Dominique Benielli committed
4
5
6
    tags:
        - docker
    script:
Baptiste Bauvin's avatar
Baptiste Bauvin committed
7
8
        - export LC_ALL=$(locale -a | grep en_US)
        - export LANG=$(locale -a | grep en_US)
Baptiste Bauvin's avatar
Baptiste Bauvin committed
9
        - pip3 -V
Baptiste Bauvin's avatar
Baptiste Bauvin committed
10
        - pip3 install -e .
Dominique Benielli's avatar
Dominique Benielli committed
11
        - pytest-3
Baptiste Bauvin's avatar
badge    
Baptiste Bauvin committed
12
13
14
15
    coverage: '/^TOTAL.+?(\d+\%)$/'
    artifacts:
        paths:
            - htmlcov/
Dominique Benielli's avatar
Dominique Benielli committed
16
17
18

# generate the documentation
doc:
Baptiste Bauvin's avatar
Baptiste Bauvin committed
19
    image: registry.gitlab.lis-lab.fr:5005/baptiste.bauvin/summit/ubuntu:18.04
Dominique Benielli's avatar
Dominique Benielli committed
20
21
22
    tags:
        - docker
    only:
Baptiste Bauvin's avatar
Baptiste Bauvin committed
23
        - master
Dominique Benielli's avatar
Dominique Benielli committed
24
        - develop
Dominique Benielli's avatar
Dominique Benielli committed
25
26
27
    script:
        - export LC_ALL=$(locale -a | grep en_US)
        - export LANG=$(locale -a | grep en_US)
Baptiste Bauvin's avatar
Baptiste Bauvin committed
28
        - pip3 install -e .[doc]
Baptiste Bauvin's avatar
Baptiste Bauvin committed
29
        - sphinx-apidoc -o docs/source summit
Dominique Benielli's avatar
Dominique Benielli committed
30
31
32
33
34
        - cd docs/source
        - sphinx-build -b html . ../build
        - cd ../..
        - cp -r ./docs/build public
    artifacts:
Baptiste Bauvin's avatar
Baptiste Bauvin committed
35
36
        paths:
            - public
Baptiste Bauvin's avatar
Baptiste Bauvin committed
37
            - htmlcov
Dominique Benielli's avatar
Dominique Benielli committed
38

Dominique Benielli's avatar
Dominique Benielli committed
39
# project public
Baptiste Bauvin's avatar
Baptiste Bauvin committed
40
pages:
Baptiste Bauvin's avatar
Baptiste Bauvin committed
41
    image: registry.gitlab.lis-lab.fr:5005/baptiste.bauvin/summit/ubuntu:18.04
Baptiste Bauvin's avatar
Baptiste Bauvin committed
42
43
44
45
46
47
48
    tags:
        - docker
    only:
        - master
    script:
        - export LC_ALL=$(locale -a | grep en_US)
        - export LANG=$(locale -a | grep en_US)
Baptiste Bauvin's avatar
Baptiste Bauvin committed
49
        - pip3 install -e .[doc]
Baptiste Bauvin's avatar
Baptiste Bauvin committed
50
        - pytest-3
Baptiste Bauvin's avatar
Baptiste Bauvin committed
51
        - sphinx-apidoc -o docs/source summit
Baptiste Bauvin's avatar
Baptiste Bauvin committed
52
53
54
55
        - cd docs/source
        - sphinx-build -b html . ../build
        - cd ../..
        - cp -r ./docs/build public
Baptiste Bauvin's avatar
Baptiste Bauvin committed
56
57
58
        - mkdir public/coverage
        - mv htmlcov/index.html public/coverage/
        - mv htmlcov/style.css public/coverage/
Baptiste Bauvin's avatar
Baptiste Bauvin committed
59
60
61
    artifacts:
       paths:
            - public
Baptiste Bauvin's avatar
Baptiste Bauvin committed
62