# run the test suite
tests:
    image: registry.gitlab.lis-lab.fr:5005/dev/multimodal/ubuntu:18.04
    tags:
        - docker
    script:
        - python3 setup.py install
        - pytest-3

# generate the documentation
doc:
    image: registry.gitlab.lis-lab.fr:5005/dev/multimodal/ubuntu:18.04
    tags:
        - docker
    only:
        - master
    script:
        - export LC_ALL=$(locale -a | grep en_US)
        - export LANG=$(locale -a | grep en_US)
        - python3 setup.py build_sphinx

# TODO: Replace the task doc by the following task pages when making the
# project public
#
#pages:
#    image: registry.gitlab.lis-lab.fr:5005/dev/multimodal/ubuntu:18.04
#    tags:
#        - docker
#    only:
#        - master
#    script:
#        - export LC_ALL=$(locale -a | grep en_US)
#        - export LANG=$(locale -a | grep en_US)
#        - python3 setup.py build_sphinx
#        - cp -r build/sphinx/html public
#    artifacts:
#        paths:
#            - public
