How it works
aerogear-rest-service project contains a REST web service which produces some valid dummy responses.
The archives produced from the above mentioned projects are deployed on separate JBoss 7.1.1 Application Server instances and they run on different ports. The archive produced from the aerogear-js-cors-jsonp-test project is deployed on a JBoss 7.1.1 AS instance 1 and runs on port 8080 and the one produced from the aerogear-rest-service is deployed on a JBoss 7.1.1 AS instance 2 and runs on port 8081(HTTP) and 8444(HTTPS).
Travis CI execution
Apparently, a browser is needed in order to execute the QUnit tests on Travis CI. Travis CI environment contains X Virtual Framebuffer and Firefox pre-installed. The X Virtual Framebuffer is an X11 server that performs all the GUI operations in memory, without showing screen output and can be used to run a real GUI application or web browser on a headless machine, as if a proper display were attached. Since the default version of Mozilla Firefox which is pre-installed on Travis CI machines is not the latest one, we manually install a newer version using the addons command.