鏡像自
https://github.com/vaadin/framework.git
synced 2024-07-29 20:18:19 +02:00
53674a7caf
* Integration tests moved from uitest to separate test modules * Run TB4 tests with maven profile * Remove old ant/ivy build scripts from uitest * Add 'needs-ssh' test category for reconnection test * Add default values for testing and validation builds * Add placeholder build.xml with instructions to run Maven
22 行
598 B
Bash
22 行
598 B
Bash
#! /bin/bash
|
|
if lockfile -r0 -! /home/integration/deploy/lock.file &> /dev/null
|
|
then
|
|
# If we could not get the lock, check how old the lock file is
|
|
DATE=$(date +%s)
|
|
# What if the file is not there any more?
|
|
LOCK_AGE=$(stat -c %Z /home/integration/deploy/lock.file)
|
|
|
|
AGE=$[($DATE - $LOCK_AGE)/60]
|
|
|
|
if [ "$AGE" -gt "20" ]
|
|
then
|
|
echo lock.file is $AGE min old.
|
|
./cleanup.sh
|
|
# else
|
|
# echo lock.file is $AGE min old.
|
|
fi
|
|
else
|
|
# If we got the lock, do a cleanup (releasing the lock) just in case something has still been left running
|
|
./cleanup.sh &> /dev/null
|
|
fi
|