Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Storage-kill: no more check disk attachement
[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 # This cannot work anymore because Java is now built by the modelchecker jenkins configuration, that is not on macosx
29 # Please use the github action instead
30 #  - make VERBOSE=1 -j$(nproc) dist simgrid simgrid-java_jar
31 #  # Get the foreign architectures
32 #  - wget https://ci.appveyor.com/api/projects/mquinson/simgrid/artifacts/simgrid.jar -O simgrid-windows.jar
33 #  - export SGVER=`grep SimGrid ChangeLog|head -n1|sed -e 's/SimGrid (//' -e 's/).*//'`
34 #  - 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
35 #  # Open all jar files, and strip them
36 #  - mkdir content ; cd content
37 #  - for j in  ../simgrid.jar ../simgrid-windows.jar ../simgrid-mac.jar ; do unzip -n $j ; done
38 #  - strip NATIVE/*/*/*.so
39 #  - x86_64-linux-gnu-strip NATIVE/*/*/lib*dll
40 #  - zip -r ../simgrid-${SGVER}.jar *
41   artifacts:
42     paths:
43 #    - simgrid-*.jar
44     - simgrid-*.tar.gz
45
46 pip:
47   image: debian:testing
48   stage: build
49   except:
50   - stable
51   script:
52   - apt-get --allow-releaseinfo-change update && apt install -y python3-pip cmake libboost-dev g++ gcc pybind11-dev
53   - python3 setup.py sdist
54   - cd dist && tar xfz simgrid*.tar.gz && cd simgrid-*/ && python3 setup.py build
55
56 pages:
57   stage: deploy
58   script:
59   - pip3 install --requirement docs/requirements.txt
60   - cd docs/source/_ext/javasphinx; python3 setup.py build; python3 setup.py install
61   - cd ../../..
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   # - The javasphinx output does not exist in the git, so the "edit on FramaGit" link is broken.
66   #   I'd like to report this as a bug, but javasphinx seems abandonned upstream.
67 #not installed   - linkchecker --ignore-url='.*\.css$' --ignore-url=public/java/org ../public
68   # From time to time, we should check external links with the
69   # following, but it has a lot of false positive
70   # - linkchecker --ignore-url='.*\.css$' --ignore-url=public/java/org --check-extern ../public
71   artifacts:
72     paths:
73     - public
74   only:
75   - master
76   needs: ["ctest"]