Continue if there is an old executable

Chances are that the previous build works just as well.
We just need it for config file parsing which does not change often.
This commit is contained in:
Gunter Labes 2018-01-12 19:14:41 +01:00 committed by GitHub
parent ed6ad71f48
commit 03b6ad568c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,8 @@ mkdir -p "$trans"
# we only need the parser, but have to build the game executable for that
echo BUILDING
cd "$dir" || exit # the scons build places the wesnoth executable in the current directory
TRAVIS=1 TRAVIS_OS_NAME=Linux scons -Y "$src" --option-cache="$build/.scons-option-cache"
# continue on failure if there is an executable from a previous build
TRAVIS=1 TRAVIS_OS_NAME=Linux scons -Y "$src" --option-cache="$build/.scons-option-cache" || [ -x wesnoth ]
# later can just rebuild updated campaigns, but for now rebuild everything
rm -f "$dir/overview.txt"