Added script for auto-rollback to the latest commit that passes all regtests.

This commit is contained in:
Ulrich Germann 2015-11-25 10:47:57 +00:00
parent e5d308ea1b
commit ef9886be49

View File

@ -0,0 +1,10 @@
#!/bin/bash
git submodule init
git submodule update regtest
while [ true ] ; do
./bjam -j$(nproc) --with-irstlm=$(pwd)/opt --with-boost=$(pwd)/opt --with-cmph=$(pwd)/opt --with-xmlrpc-c=$(pwd)/opt --with-regtest=$(pwc)/regtest -a -q $@ && break
commit=$(git log | grep ^commit | head -n2 | tail -n1 | sed 's/commit //')
echo REVERTING TO COMMIT $commit
git checkout $commit
done