mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Added script for auto-rollback to the latest commit that passes all regtests.
This commit is contained in:
parent
e5d308ea1b
commit
ef9886be49
10
contrib/debugging/auto-rollback.sh
Executable file
10
contrib/debugging/auto-rollback.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user