Merge pull request #467 from jobermayr/master

Improve travis-ci usage.
More changes in .travis.yml

Build in Debug mode, to make builds faster.  But set
DEB_DEFAULT to OFF, we do not want to enable these
extra checks.

Enable OCE_TESTING to launch OCE tests.

Now that builds are faster, enable OCE_OCAF and
OCE_DATAEXCHANGE.  As we do not yet install X11
development packages, set OCE_DISABLE_X11 to ON.
Disable testing in .travis.yml, it does not work yet
Do not compile OCAFExport_test if OCE_DISABLE_X11 is set
Reenable OCE_TESTING
Merge pull request #468 from tpaviot/review/conditional-OCAFExport_test

Do not compile OCAFExport_test if OCE_DISABLE_X11 is set
Enable precompiled headers to speed up builds
Enable all components in .travis.yml
Only build master and review* branches on travis-ci.org

This is to avoid abusing travis-ci resources on development branches.
Merge pull request #469 from tpaviot/review/improve-travis-ci

Improve travis-ci usage
Many improvements in travis-ci usage

Move travis-ci script into a new file: .travis.build.sh

Since we want to catch test failures, tests should be run during script
and not after_script.  Writing commands in a separate file is simpler.

Enable FreeImage support.

Compile in Release mode, builds run in less than 20 minutes.

Enable OCCT tests.  This requires using xvfb-run on travis-ci, and
tclthread to run OCCT tests in parallel.
Since 'make occt-tests' behave in a strange way, run directly
'cmake -P DrawLaunchTests.cmake'.

OCCT summary output is processed by an XSL stylesheet to print failed
test logs.

travis-ci truncates output when there are more than 10,000 lines of
output.  Builds generate around 9,000 lines of output, trim them to
see test results.
For the same reason, remove OCCT tests which need data files.

Remove tests/xml, these tests hang for unknown reasons on travis-ci.
Merge pull request #471 from tpaviot/review/improve-travis-ci-usage

Many improvements in travis-ci usage
Fix flags in FormatMessage, Wvarargs warning fix

MinGW has been giving a warning about 'err is not last named argument' for the line '''va_start ( arg_ptr, err );'''; C standard says that va_start should use the last named argument with '''va_start'''. When going to fix this, I noticed the wrong flags have been supplied to FormatMessage, the '''FORMAT_MESSAGE_ARGUMENT_ARRAY''' flag is not supposed to be used with a '''va_list''' structure like it was in the code. After looking at the other places in OCE that use '''_osd_wnt_set_error''' and reading that using '''FORMAT_MESSAGE_FROM_SYSTEM''' shouldn't really be used with the optional argument list unless you're sure of the exact error and what that error message requires in terms of optional inserts, I figured I'd just neuter this function and leave out the optional arguments entirely.
.travis.yml: Move display of tests duration into after_script

This way, tests summary is visible at the end of output.
.travis.yml: Fix previous commit, .travis.yml was invalid
.travis.yml: install libfreeimage-dev
Fix tests/bugs/caf/bug21231
Also define CSF_StandardDefaults and CSF_StandardLiteDefaults when running OCCT tests

These variables are defined in OCCT env.sh.
Reenable xml OCCT tests

Recent commits fix test hangs.
Made library output path absolute when using MinGw