Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.14 KiB
Newer Older
Dominique Benielli's avatar
Dominique Benielli committed
# run the test suite
tests:
    image: ubuntu:22.04 
    tags:
        - docker
Dominique Benielli's avatar
Dominique Benielli committed
    script:
        - ./install_script.sh
        - python3 setup.py install
        - pytest-3
    coverage: '/^TOTAL.+?(\d+\%)$/'
    artifacts:
      paths:
        - htmlcov/
Dominique Benielli's avatar
Dominique Benielli committed

# generate the documentation
doc:
    image: registry.gitlab.lis-lab.fr:5005/dev/scikit-multimodallearn/ubuntu:22.04
Dominique Benielli's avatar
Dominique Benielli committed
    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
        - pip3 install -e .[doc]
        - rm -Rf build
Dominique Benielli's avatar
Dominique Benielli committed
        - python3 setup.py build_sphinx
    artifacts:
        paths:
          - public

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

# project public
#
pages:
    image: registry.gitlab.lis-lab.fr:5005/dev/scikit-multimodallearn/ubuntu:22.04
    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
        - pip3 install -e .[doc]
        - python3 setup.py build_sphinx
        - cp -r build/sphinx/html public
    artifacts:
        paths:
          - public