Merge pull request #488 from denizzzka/console_CI_

Adds console build to Travis CI
This commit is contained in:
Vadim Lopatin 2017-10-16 11:22:24 +03:00 committed by GitHub
commit 80a2cd9eca
2 changed files with 12 additions and 6 deletions

View File

@ -17,9 +17,11 @@ env:
- ARCH=x86_64 CONFIG=default
- ARCH=x86_64 CONFIG=minimal
- ARCH=x86_64 CONFIG=x11
- ARCH=x86_64 CONFIG=console
- ARCH=x86 CONFIG=default
- ARCH=x86 CONFIG=minimal
- ARCH=x86 CONFIG=x11
- ARCH=x86 CONFIG=console
# No-one cares about OS X x86 and X11 on OSX
matrix:

View File

@ -504,12 +504,16 @@ extern(C) int DLANGUImain(string[] args) {
Log.i("Entering UIAppMain: ", args);
int result = -1;
try {
result = UIAppMain(args);
Log.i("UIAppMain returned ", result);
} catch (Exception e) {
Log.e("Abnormal UIAppMain termination");
Log.e("UIAppMain exception: ", e);
version (unittest) {
result = 0;
} else {
try {
result = UIAppMain(args);
Log.i("UIAppMain returned ", result);
} catch (Exception e) {
Log.e("Abnormal UIAppMain termination");
Log.e("UIAppMain exception: ", e);
}
}
Platform.setInstance(null);