Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Add const qualifier for reference parameter.
[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   - cmake -Denable_model-checking=OFF -Denable_documentation=OFF -Denable_coverage=OFF -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON -DLTO_EXTRA_FLAG="auto" .
13   - make -j$(nproc) VERBOSE=1 all tests && ctest -j$(nproc) --output-on-failure
14   artifacts:
15     paths:
16     - lib/
17     expire_in: 1 week
18   
19 release:
20   stage: build
21   only:
22   - stable
23   script:
24   - apt-get --allow-releaseinfo-change update && apt install -y binutils-x86-64-linux-gnu wget unzip zip
25   # Build the linux version of the jarfile without the boost dependency
26   - 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" .
27   - make VERBOSE=1 -j$(nproc) dist simgrid simgrid-java_jar
28   # Get the foreign architectures
29   - wget https://ci.appveyor.com/api/projects/mquinson/simgrid/artifacts/simgrid.jar -O simgrid-windows.jar
30   - export SGVER=`printf '#include "simgrid/config.h"\n#if SIMGRID_VERSION_PATCH\nSIMGRID_VERSION_MAJOR.SIMGRID_VERSION_MINOR.SIMGRID_VERSION_PATCH\n#else\nSIMGRID_VERSION_MAJOR.SIMGRID_VERSION_MINOR\n#endif'|gcc -E - -Iinclude|tail -1|sed 's/ //g'`
31   - wget https://ci.inria.fr/simgrid/job/SimGrid/build_mode=Debug,node=osx/lastSuccessfulBuild/artifact/build/simgrid-${SGVER}/build/simgrid.jar -O simgrid-mac.jar
32   # Open all jar files, and strip them
33   - mkdir content ; cd content
34   - for j in  ../simgrid.jar ../simgrid-windows.jar ../simgrid-mac.jar ; do unzip -n $j ; done
35   - strip NATIVE/*/*/*.so
36   - x86_64-linux-gnu-strip NATIVE/*/*/lib*dll
37   - zip -r ../simgrid-${SGVER}.jar *
38   artifacts:
39     paths:
40     - simgrid-*.jar
41     - simgrid-*.tar.gz
42
43 pip:
44   image: debian:testing
45   stage: build
46   except:
47   - stable
48   script:
49   - apt-get --allow-releaseinfo-change update && apt install -y python3-pip cmake libboost-dev g++ gcc pybind11-dev
50   - python3 setup.py sdist
51   - cd dist && tar xfz simgrid*.tar.gz && cd simgrid-*/ && python3 setup.py build
52
53 pages:
54   stage: deploy
55   script:
56   - pip3 install --requirement docs/requirements.txt
57   - cd docs
58   - LC_ALL=C.UTF-8 ./Build.sh
59   - mv build/html ../public
60   # - The CSS contains a reference to a font or something, not something we gonna fix on our side
61   # - The javasphinx output does not exist in the git, so the "edit on FramaGit" link is broken.
62   #   I'd like to report this as a bug, but javasphinx seems abandonned upstream.
63   - linkchecker --ignore-url='.*\.css$' --ignore-url=public/java/org ../public
64   # From time to time, we should check external links with the
65   # following, but it has a lot of false positive
66   # - linkchecker --ignore-url='.*\.css$' --ignore-url=public/java/org --check-extern ../public
67   artifacts:
68     paths:
69     - public
70   only:
71   - master
72   needs: ["ctest"]
73