source: XIOS/trunk/xios_test_suite/COMPILE/compile_jeanzay @ 1945

Last change on this file since 1945 was 1945, checked in by yushan, 16 months ago

trunk : modif related to compilation before unit tests. No longer compile on login node.

  • Property svn:executable set to *
File size: 686 bytes
Line 
1#!/bin/bash
2set -x
3export revision=$(svn info --show-item revision .. 2>&1)
4python config_compile.py
5
6sbatch --wait job_compile_jeanzay.sh
7
8if [ "$COPY_TO_SERVER" = true ]
9  then
10 
11  build_dir=${xios_test_suite_repository}/BUILD
12  mkdir -p $build_dir ; CHMOD $build_dir
13  mkdir -p ${build_dir}/build_${xios_machine_name}
14
15  allreports=`ls ./build_${revision}_*.txt`
16  for report in $allreports
17  do
18     ll=$(wc -l $report | awk '{print $1}')
19     if [[ $(($ll)) > 4 ]] ;  then
20        echo "$report need to be copied"
21        cp $report ${build_dir}/build_${xios_machine_name}
22     fi
23  done
24
25  CHMOD -R ${build_dir}/build_${xios_machine_name}
26else
27    echo "without files copy"
28fi
29
Note: See TracBrowser for help on using the repository browser.