Last change
on this file since 2120 was
1846,
checked in by yushan, 5 years ago
|
dev_trunk_omp : launch local compile and test iff last-changed-revision >= revision
|
-
Property svn:executable set to
*
|
File size:
668 bytes
|
Rev | Line | |
---|
[1844] | 1 | #!/bin/bash |
---|
| 2 | set -x |
---|
[1846] | 3 | export revision=$(svn info --show-item revision ../.. 2>&1) |
---|
| 4 | export server_revision=$(svn info --show-item last-changed-revision http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/dev/dev_trunk_omp 2>&1) |
---|
| 5 | |
---|
| 6 | if (( ${server_revision} >= ${revision} )) |
---|
| 7 | then |
---|
| 8 | |
---|
[1844] | 9 | python config_compile.py |
---|
| 10 | |
---|
| 11 | sbatch --wait job_compile_jeanzay.sh |
---|
| 12 | |
---|
| 13 | build_dir=${xios_test_suite_repository}/BUILD |
---|
| 14 | mkdir -p $build_dir ; CHMOD $build_dir |
---|
| 15 | mkdir -p ${build_dir}/build_${xios_machine_name} |
---|
| 16 | |
---|
| 17 | cp build_*.txt ${build_dir}/build_${xios_machine_name} |
---|
| 18 | CHMOD -R ${build_dir}/build_${xios_machine_name} |
---|
| 19 | |
---|
| 20 | bash -c "python ./generate_compile.py" |
---|
[1846] | 21 | else |
---|
[1844] | 22 | |
---|
[1846] | 23 | echo "latest revision ... no need to compile" |
---|
| 24 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.