From 4f24a06be6c2c9c94e43a3e92c3b25aa50ccc0eb Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 24 Aug 2017 21:51:50 +0000 Subject: [PATCH] Add Travis configuration to mod.config. --- .travis.yml | 4 +++- mod.config | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 447c975..d377796 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,9 @@ addons: script: - make - - make test + - . mod.config; + if [ "${TRAVIS_TEST_MOD}" == "True" ]; then make test || travis_terminate 1; fi; + if [ "${TRAVIS_TEST_PACKAGING}" == "True" ]; then ./packaging/package-all.sh test-0 || travis_terminate 1; fi before_deploy: - mkdir build diff --git a/mod.config b/mod.config index 6d8effc..19dfb7b 100644 --- a/mod.config +++ b/mod.config @@ -18,7 +18,22 @@ ENGINE_VERSION="1b0ae1e" INCLUDE_DEFAULT_MODS="False" ############################################################################## -# Packaging Configuration +# Continuous Integration +# +# Settings controlling the behaviour of Travis CI +# (if it has been enabled on your GitHub repository) +############################################################################## + +# Enable tests for common errors when a new commit is pushed to the GitHub repository +# Accepts values "True" or "False". +TRAVIS_TEST_MOD="True" + +# Perform a dry run of the installer generation when a new commit is pushed to the GitHub repository +# Accepts values "True" or "False". +TRAVIS_TEST_PACKAGING="False" + +############################################################################## +# Packaging # # Settings controlling the creation of installers. ##############################################################################