瀏覽代碼

contrib/ci.inria.fr: update windows pipeline

Nathalie Furmento 6 年之前
父節點
當前提交
0f511e7abf
共有 2 個文件被更改,包括 120 次插入30 次删除
  1. 30 30
      contrib/ci.inria.fr/Jenkinsfile-windows
  2. 90 0
      contrib/ci.inria.fr/job-1-check-windows.sh

+ 30 - 30
contrib/ci.inria.fr/Jenkinsfile-windows

@@ -30,32 +30,32 @@ pipeline
 
 	stages
 	{
-//		stage('Tarball')
-//		{
-//			steps
-//			{
-//				node('autotools')
-//				{
-//					checkout scm
-//					sh 'contrib/ci.inria.fr/job-0-tarball.sh'
-//					script
-//					{
-//					       env.tarballgz = sh (script: 'ls *.tar.gz', returnStdout: true).trim()
-//					}
-//					stash includes: "${env.tarballgz}", name: 'tarballgz'
-//					stash includes: "starpu.pdf", name: 'doc'
-//					stash includes: "starpu_dev.pdf", name: 'doc_dev'
-//					// Stash those scripts because they are not in make dist
-//					dir('contrib/ci.inria.fr')
-//					{
-//						stash includes: "job-1-check.sh", name: 'script-unix-check'
-//					}
-//					archiveArtifacts artifacts: "${env.tarballgz},starpu.pdf,starpu_dev.pdf", fingerprint: true, onlyIfSuccessful: true
-//					deleteDir()
-//
-//				}
-//			}
-//		}
+		stage('Tarball')
+		{
+			steps
+			{
+				node('autotools')
+				{
+					checkout scm
+					sh 'contrib/ci.inria.fr/job-0-tarball.sh'
+					script
+					{
+					       env.tarballgz = sh (script: 'ls *.tar.gz', returnStdout: true).trim()
+					}
+					stash includes: "${env.tarballgz}", name: 'tarballgz'
+					stash includes: "starpu.pdf", name: 'doc'
+					stash includes: "starpu_dev.pdf", name: 'doc_dev'
+					// Stash those scripts because they are not in make dist
+					dir('contrib/ci.inria.fr')
+					{
+						stash includes: "job-1-check-windows.sh", name: 'script-windows-check'
+					}
+					archiveArtifacts artifacts: "${env.tarballgz},starpu.pdf,starpu_dev.pdf", fingerprint: true, onlyIfSuccessful: true
+					deleteDir()
+
+				}
+			}
+		}
 		stage('Check')
 		{
 			steps
@@ -77,10 +77,10 @@ pipeline
 							{
 								dir('check-windows')
 								{
-//									unstash 'tarballgz'
-//									unstash 'script-unix-check'
-									sh 'echo test'
-//									deleteDir()
+									unstash 'tarballgz'
+									unstash 'script-windows-check'
+									sh 'chmod 755 job-1-check-windows.sh && ./job-1-check-windows.sh'
+									deleteDir()
 								}
 							}
 						}

+ 90 - 0
contrib/ci.inria.fr/job-1-check-windows.sh

@@ -0,0 +1,90 @@
+#!/bin/sh
+# StarPU --- Runtime system for heterogeneous multicore architectures.
+#
+# Copyright (C) 2013-2018                                CNRS
+#
+# StarPU is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or (at
+# your option) any later version.
+#
+# StarPU is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# See the GNU Lesser General Public License in COPYING.LGPL for more details.
+#
+
+echo foo
+#set -e
+#set -x
+#
+#ulimit -c unlimited
+#
+#export PKG_CONFIG_PATH=/home/ci/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
+#export LD_LIBRARY_PATH=/home/ci/usr/local/lib:$LD_LIBRARY_PATH
+#
+#tarball=$(ls -tr starpu-*.tar.gz | tail -1)
+#
+#if test -z "$tarball"
+#then
+#    echo Error. No tar.gz file
+#    ls
+#    pwd
+#    exit 1
+#fi
+#
+#basename=$(basename $tarball .tar.gz)
+#export STARPU_HOME=$PWD/$basename/home
+#mkdir -p $basename
+#cd $basename
+#env > $PWD/env
+#
+#test -d $basename && chmod -R u+rwX $basename && rm -rf $basename
+#tar xfz ../$tarball
+#cd $basename
+#mkdir build
+#cd build
+#
+#STARPU_CONFIGURE_OPTIONS=""
+#suname=$(uname)
+#if test "$suname" == "Darwin"
+#then
+#    STARPU_CONFIGURE_OPTIONS="--without-hwloc"
+#fi
+#if test "$suname" == "OpenBSD"
+#then
+#    STARPU_CONFIGURE_OPTIONS="--without-hwloc --disable-mlr"
+#fi
+#if test "$suname" == "FreeBSD"
+#then
+#    STARPU_CONFIGURE_OPTIONS="--disable-fortran"
+#fi
+#
+#export CC=gcc
+#
+#CONFIGURE_OPTIONS="--enable-debug --enable-verbose --enable-mpi-check --disable-build-doc"
+#day=$(date +%u)
+#if test $day -le 5
+#then
+#    CONFIGURE_CHECK="--enable-quick-check"
+#else
+#    CONFIGURE_CHECK="--enable-long-check"
+#fi
+#../configure $CONFIGURE_OPTIONS $CONFIGURE_CHECK  $STARPU_CONFIGURE_OPTIONS
+#
+#export STARPU_TIMEOUT_ENV=1800
+#make
+##make check
+#(make -k check || true) 2>&1 | tee  ../check_$$
+#make showsuite
+#
+##grep "^FAIL:" ../check_$$ || true
+#
+#make clean
+#
+#grep "^FAIL:" ../check_$$ || true
+#
+#echo "Running on $(uname -a)"
+#exit $(grep "^FAIL:" ../check_$$ | wc -l)
+