Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix the pages job on gitlab CI
[simgrid.git] / .gitlab-ci.yml
1 image: simgrid/build-deps
2
3 stages:
4  - build
5  - deploy
6
7 ctest:
8   stage: build
9   except:
10   - stable
11   script:
12   - apt-get --allow-releaseinfo-change update
13   - apt install -y binutils xsltproc
14   - cmake -Denable_model-checking=OFF -Denable_documentation=OFF -Denable_coverage=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON -DLTO_EXTRA_FLAG="auto" .
15   - make -j$(nproc) VERBOSE=1 all tests
16   - ctest -T Test -j$(nproc) --output-on-failure
17   - xsltproc ./tools/jenkins/ctest2junit.xsl Testing/"$( head -n 1 < Testing/TAG )"/Test.xml > CTestResults.xml
18   artifacts:
19     paths:
20     - lib/
21     reports:
22       junit:
23       - CTestResults.xml
24     expire_in: 1 week
25     when: always
26
27
28 release:
29   stage: build
30   only:
31   - stable
32   script:
33   - apt-get --allow-releaseinfo-change update
34   - apt install -y binutils wget unzip zip
35   - cmake -Denable_documentation=OFF -Denable_msg=ON -Dminimal-bindings=ON -Denable_compile_optimizations=ON -Denable_smpi=OFF -DLTO_EXTRA_FLAG="auto" .
36   - make VERBOSE=1 -j$(nproc) dist
37   artifacts:
38     paths:
39     - simgrid-*.tar.gz
40
41 pip:
42   image:
43     name: python:3-bullseye
44     entrypoint: ['/bin/bash', '-c', 'ln -snf /bin/bash /bin/sh && /bin/bash -c $0' ]
45   stage: build
46   except:
47   - stable
48   script:
49   - apt-get --allow-releaseinfo-change update
50   - apt install -y python3-pip cmake libboost-dev g++ gcc pybind11-dev
51   - python3 setup.py sdist
52   - cd dist
53   - tar xfz simgrid*.tar.gz
54   - cd simgrid-*/
55   - python3 setup.py build
56
57 pages:
58   stage: deploy
59   script:
60   - pip3 install --requirement docs/requirements.txt
61   - cd docs
62   - LC_ALL=C.UTF-8 ./Build.sh
63   - mv build/html ../public
64   # - The CSS contains a reference to a font or something, not something we gonna fix on our side
65 #not installed   - linkchecker --ignore-url='.*\.css$' ../public
66   # From time to time, we should check external links with the
67   # following, but it has a lot of false positive
68   # - linkchecker --ignore-url='.*\.css$' --check-extern ../public
69   artifacts:
70     paths:
71     - public
72   only:
73   - master
74   needs: ["ctest"]