Travis CI: Test project exporting/script running in the headless editor

This commit is contained in:
Hugo Locurcio 2019-07-31 23:34:08 +02:00
parent cce148b024
commit 5efd43609b
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
2 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
# Godot auto generated files # Godot auto generated files
*.gen.* *.gen.*
.import/
# Documentation generated by doxygen or from classes.xml # Documentation generated by doxygen or from classes.xml
doc/_build/ doc/_build/

View file

@ -84,9 +84,9 @@ matrix:
os: osx os: osx
compiler: clang compiler: clang
- name: Linux headless editor (release_debug, GCC 9) - name: Linux headless editor (release_debug, GCC 9, testing project exporting and script running)
stage: build stage: build
env: PLATFORM=server TOOLS=yes TARGET=release_debug CACHE_NAME=${PLATFORM}-tools-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="warnings=extra werror=yes" env: PLATFORM=server TOOLS=yes TARGET=release_debug CACHE_NAME=${PLATFORM}-tools-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="warnings=extra werror=yes" TEST_PROJECT=yes
os: linux os: linux
compiler: gcc-9 compiler: gcc-9
addons: addons:
@ -136,4 +136,10 @@ script:
sh ./misc/travis/clang-format.sh; sh ./misc/travis/clang-format.sh;
else else
scons -j2 CC=$CC CXX=$CXX platform=$PLATFORM tools=$TOOLS target=$TARGET $OPTIONS $EXTRA_ARGS; scons -j2 CC=$CC CXX=$CXX platform=$PLATFORM tools=$TOOLS target=$TARGET $OPTIONS $EXTRA_ARGS;
if [ "$TEST_PROJECT" = "yes" ]; then
git clone --depth 1 "https://github.com/godotengine/godot-tests.git";
sed -i "s:custom_template/release=\"\":custom_template/release=\"$(readlink -e bin/godot_server.x11.opt.tools.64)\":" godot-tests/tests/project_export/export_presets.cfg;
godot-tests/tests/project_export/test_project.sh "bin/godot_server.x11.opt.tools.64";
fi
fi fi