Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New github action for StarPU CI
[simgrid.git] / tools / jenkins / ci-starpu.sh
1 #!/usr/bin/env sh
2 set -e
3
4 export SUDO=""
5
6 # Update refs, just in case
7 $SUDO apt-get update
8
9 # Install basic tools
10 $SUDO apt-get -y install build-essential
11 $SUDO apt-get -y install libboost-all-dev
12 $SUDO apt-get -y install wget
13 $SUDO apt-get -y install git
14
15 for i in master 1.3 ; do
16   rm -rf starpu*
17   wget https://files.inria.fr/starpu/simgrid/starpu-simgrid-$i.tar.gz
18   md5sum starpu-simgrid-$i.tar.gz
19   tar xf starpu-simgrid-$i.tar.gz
20   cd starpu-1*
21
22   # NOTE: Do *not* introduce parameters to "make it work" here.
23   # Things should "just work" with default parameters!
24   # Users should not have to tinker to get starpu working on top of simgrid, that is precisely why we have this CI
25
26   if [ $i = master ]; then
27     # On master, fail if we use deprecated functions, so that StarPU people know they have to stop using them, fix it, and thus make CI happy again
28     CFLAGS="-Werror=deprecated-declarations"
29     CXXFLAGS="-Werror=deprecated-declarations"
30   else
31     CFLAGS=""
32     CXXFLAGS=""
33   fi
34   if ! ./configure CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
35                    --enable-simgrid --disable-shared --enable-mpi-check --disable-cuda \
36                    --disable-build-doc --enable-quick-check
37   then
38     cat ./config.log
39     false
40   fi
41   make -j 2 V=1
42
43   for STARPU_SCHED in eager dmdas ; do
44     export STARPU_SCHED
45     if ! make check -k
46     then
47       make showsuite
48       make showfailed
49       false
50     fi
51   done
52   cd ..
53 done