.gitlab-ci.yml 1.02 KB
Newer Older
valentin.emiya's avatar
CI    
valentin.emiya committed
1
2
3
4
5
6
# run the test suite
tests:
    image: registry.gitlab.lis-lab.fr:5005/skmad-suite/madarrays/ubuntu:18.04
    tags:
        - docker
    script:
valentin.emiya's avatar
valentin.emiya committed
7
        - cd python
valentin.emiya's avatar
valentin.emiya committed
8
        - pip3 install --no-deps ltfatpy madarrays yafe skpomade pandas xarray
valentin.emiya's avatar
valentin.emiya committed
9
10
        - pip3 install 'scipy==1.4.1' -U
        - pip3 install 'matplotlib==3.1.2' -U
valentin.emiya's avatar
valentin.emiya committed
11
        - pip3 install --no-deps .
valentin.emiya's avatar
valentin.emiya committed
12
        - python3 tffpy/tests/ci_config.py
valentin.emiya's avatar
CI    
valentin.emiya committed
13
14
15
16
17
18
19
20
21
22
        - pytest-3

# generate the documentation
pages:
    image: registry.gitlab.lis-lab.fr:5005/skmad-suite/madarrays/ubuntu:18.04
    tags:
        - docker
    only:
        - master
    script:
Valentin Emiya's avatar
Valentin Emiya committed
23
        - cd python
valentin.emiya's avatar
valentin.emiya committed
24
        - pip3 install --no-deps ltfatpy madarrays yafe skpomade pandas xarray
valentin.emiya's avatar
valentin.emiya committed
25
26
        - pip3 install 'scipy==1.4.1' -U
        - pip3 install 'matplotlib==3.1.2' -U
Valentin Emiya's avatar
Valentin Emiya committed
27
        - pip3 install --no-deps .
Valentin Emiya's avatar
Valentin Emiya committed
28
        - python3 tffpy/tests/ci_config.py
Valentin Emiya's avatar
Valentin Emiya committed
29
        - python3 setup.py build_sphinx
Valentin Emiya's avatar
Valentin Emiya committed
30
31
        - cd ..
        - cp -r python/build/sphinx/html public
Valentin Emiya's avatar
Valentin Emiya committed
32
        - ls public
valentin.emiya's avatar
CI    
valentin.emiya committed
33
34
    artifacts:
        paths:
valentin.emiya's avatar
valentin.emiya committed
35
            - public
valentin.emiya's avatar
CI    
valentin.emiya committed
36