Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill remaining traces of win32 support.
[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   # Build the linux version of the jarfile without the boost dependency
36   - cmake -Denable_documentation=OFF -Denable_java=ON -Denable_msg=ON -Denable_lib_in_jar=ON -Dminimal-bindings=ON -Denable_compile_optimizations=ON -Denable_smpi=OFF -DLTO_EXTRA_FLAG="auto" .
37   - make VERBOSE=1 -j$(nproc) dist simgrid simgrid-java_jar
38 # This cannot work anymore because Java is now built by the modelchecker jenkins configuration, that is not on macosx
39 # Please use the github action instead
40 #  - make VERBOSE=1 -j$(nproc) dist simgrid simgrid-java_jar
41 #  # Get the foreign architectures
42 #  - export SGVER=`grep SimGrid ChangeLog|head -n1|sed -e 's/SimGrid (//' -e 's/).*//'`
43 #  - wget https://ci.inria.fr/simgrid/job/SimGrid/build_mode=Debug,node=macos/lastSuccessfulBuild/artifact/build/simgrid-${SGVER}/build/simgrid.jar -O simgrid-mac.jar
44 #  # Open all jar files, and strip them
45 #  - mkdir content ; cd content
46 #  - for j in  ../simgrid.jar ../simgrid-mac.jar ; do unzip -n $j ; done
47 #  - strip NATIVE/*/*/*.so
48 #  - x86_64-linux-gnu-strip NATIVE/*/*/lib*dll
49 #  - zip -r ../simgrid-${SGVER}.jar *
50   artifacts:
51     paths:
52 #    - simgrid-*.jar
53     - simgrid-*.tar.gz
54
55 pip:
56   image:
57     name: python:3-bullseye
58     entrypoint: ['/bin/bash', '-c', 'ln -snf /bin/bash /bin/sh && /bin/bash -c $0' ]
59   stage: build
60   except:
61   - stable
62   script:
63   - apt-get --allow-releaseinfo-change update
64   - apt install -y python3-pip cmake libboost-dev g++ gcc pybind11-dev
65   - python3 setup.py sdist
66   - cd dist
67   - tar xfz simgrid*.tar.gz
68   - cd simgrid-*/
69   - python3 setup.py build
70
71 pages:
72   stage: deploy
73   script:
74   - pip3 install --requirement docs/requirements.txt
75   - cd docs/source/_ext/javasphinx; python3 setup.py build; python3 setup.py install
76   - cd ../../..
77   - LC_ALL=C.UTF-8 ./Build.sh
78   - mv build/html ../public
79   # - The CSS contains a reference to a font or something, not something we gonna fix on our side
80   # - The javasphinx output does not exist in the git, so the "edit on FramaGit" link is broken.
81   #   I'd like to report this as a bug, but javasphinx seems abandonned upstream.
82 #not installed   - linkchecker --ignore-url='.*\.css$' --ignore-url=public/java/org ../public
83   # From time to time, we should check external links with the
84   # following, but it has a lot of false positive
85   # - linkchecker --ignore-url='.*\.css$' --ignore-url=public/java/org --check-extern ../public
86   artifacts:
87     paths:
88     - public
89   only:
90   - master
91   needs: ["ctest"]