diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-07-31 23:34:08 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-08-20 17:35:55 +0200 |
commit | 5efd43609b84c2fec2ea452a1c27b028388e8389 (patch) | |
tree | ae9a92175b432e077d047c9d9c7a4c6888e784a0 | |
parent | cce148b0242836b5c32a7fa6c39013a2fc1c9eff (diff) |
Travis CI: Test project exporting/script running in the headless editor
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .travis.yml | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore index f43f68f25f..0ee2a8b382 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Godot auto generated files *.gen.* +.import/ # Documentation generated by doxygen or from classes.xml doc/_build/ diff --git a/.travis.yml b/.travis.yml index e16f1ca8a7..305544d821 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,9 +84,9 @@ matrix: os: osx 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 - 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 compiler: gcc-9 addons: @@ -136,4 +136,10 @@ script: sh ./misc/travis/clang-format.sh; else 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 |