.gitlab-ci.yml 1.15 KB
Newer Older
Dominique Benielli's avatar
Dominique Benielli committed
1
2
# run the test suite
tests:
Dominique Benielli's avatar
gitlab    
Dominique Benielli committed
3
    image: registry.gitlab.lis-lab.fr:5005/dev/scikit-multimodallearn/ubuntu:18.04
Dominique Benielli's avatar
Dominique Benielli committed
4
5
6
7
8
    tags:
        - docker
    script:
        - python3 setup.py install
        - pytest-3
Dominique Benielli's avatar
Dominique Benielli committed
9
    coverage: '/^TOTAL.+?(\d+\%)$/'
Dominique Benielli's avatar
Dominique Benielli committed
10
11
    artifacts:
      paths:
Dominique Benielli's avatar
Dominique Benielli committed
12
        - htmlcov/
Dominique Benielli's avatar
Dominique Benielli committed
13
14
15

# generate the documentation
doc:
Dominique Benielli's avatar
gitlab    
Dominique Benielli committed
16
    image: registry.gitlab.lis-lab.fr:5005/dev/scikit-multimodallearn/ubuntu:18.04
Dominique Benielli's avatar
Dominique Benielli committed
17
18
19
20
21
22
23
    tags:
        - docker
    only:
        - master
    script:
        - export LC_ALL=$(locale -a | grep en_US)
        - export LANG=$(locale -a | grep en_US)
Dominique Benielli's avatar
Dominique Benielli committed
24
        - python3 setup.py install
Dominique Benielli's avatar
Dominique Benielli committed
25
        - python3 setup.py build_sphinx
Dominique Benielli's avatar
Dominique Benielli committed
26
27
28
29
30
    artifacts:
        paths:
          - public

#        - python3 setup.py build_sphinx
Dominique Benielli's avatar
Dominique Benielli committed
31
32
33

# project public
#
Dominique Benielli's avatar
Dominique Benielli committed
34
pages:
Dominique Benielli's avatar
Dominique Benielli committed
35
    image: registry.gitlab.lis-lab.fr:5005/dev/scikit-multimodallearn/ubuntu:18.04
Dominique Benielli's avatar
Dominique Benielli committed
36
37
38
39
40
41
42
    tags:
        - docker
    only:
        - master
    script:
        - export LC_ALL=$(locale -a | grep en_US)
        - export LANG=$(locale -a | grep en_US)
43
        - python3 setup.py install
Dominique Benielli's avatar
Dominique Benielli committed
44
45
46
47
48
        - python3 setup.py build_sphinx
        - cp -r build/sphinx/html public
    artifacts:
        paths:
          - public