Logo AND Algorithmique Numérique Distribuée

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