Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gitlab-ci: pages only waits for the pip build, to speed things up
[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
15 release:
16   stage: build
17   only:
18   - stable
19   script:
20   - apt-get --allow-releaseinfo-change update && apt install -y binutils-x86-64-linux-gnu wget unzip zip
21   # Build the linux version of the jarfile without the boost dependency
22   - 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" .
23   - make VERBOSE=1 -j$(nproc) dist simgrid simgrid-java_jar
24   # Get the foreign architectures
25   - wget https://ci.appveyor.com/api/projects/mquinson/simgrid/artifacts/simgrid.jar -O simgrid-windows.jar
26   - 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'`
27   - 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
28   # Open all jar files, and strip them
29   - mkdir content ; cd content
30   - for j in  ../simgrid.jar ../simgrid-windows.jar ../simgrid-mac.jar ; do unzip -n $j ; done
31   - strip NATIVE/*/*/*.so
32   - x86_64-linux-gnu-strip NATIVE/*/*/lib*dll
33   - zip -r ../simgrid-${SGVER}.jar *
34   artifacts:
35     paths:
36     - simgrid-*.jar
37     - simgrid-*.tar.gz
38
39 pip:
40   image: debian:testing
41   stage: build
42   except:
43   - stable
44   script:
45   - apt-get --allow-releaseinfo-change update && apt install -y python3-pip cmake libboost-dev g++ gcc pybind11-dev
46   - python3 setup.py sdist
47   - cd dist && tar xfz simgrid*.tar.gz && cd simgrid-*/ && python3 setup.py build
48   artifacts:
49     paths:
50     - lib/
51     expire_in: 1 week
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: ["pip"]
73