mirror of https://github.com/buggins/dlangui.git
Merge pull request #488 from denizzzka/console_CI_
Adds console build to Travis CI
This commit is contained in:
commit
80a2cd9eca
|
@ -17,9 +17,11 @@ env:
|
||||||
- ARCH=x86_64 CONFIG=default
|
- ARCH=x86_64 CONFIG=default
|
||||||
- ARCH=x86_64 CONFIG=minimal
|
- ARCH=x86_64 CONFIG=minimal
|
||||||
- ARCH=x86_64 CONFIG=x11
|
- ARCH=x86_64 CONFIG=x11
|
||||||
|
- ARCH=x86_64 CONFIG=console
|
||||||
- ARCH=x86 CONFIG=default
|
- ARCH=x86 CONFIG=default
|
||||||
- ARCH=x86 CONFIG=minimal
|
- ARCH=x86 CONFIG=minimal
|
||||||
- ARCH=x86 CONFIG=x11
|
- ARCH=x86 CONFIG=x11
|
||||||
|
- ARCH=x86 CONFIG=console
|
||||||
|
|
||||||
# No-one cares about OS X x86 and X11 on OSX
|
# No-one cares about OS X x86 and X11 on OSX
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -504,12 +504,16 @@ extern(C) int DLANGUImain(string[] args) {
|
||||||
|
|
||||||
Log.i("Entering UIAppMain: ", args);
|
Log.i("Entering UIAppMain: ", args);
|
||||||
int result = -1;
|
int result = -1;
|
||||||
try {
|
version (unittest) {
|
||||||
result = UIAppMain(args);
|
result = 0;
|
||||||
Log.i("UIAppMain returned ", result);
|
} else {
|
||||||
} catch (Exception e) {
|
try {
|
||||||
Log.e("Abnormal UIAppMain termination");
|
result = UIAppMain(args);
|
||||||
Log.e("UIAppMain exception: ", e);
|
Log.i("UIAppMain returned ", result);
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e("Abnormal UIAppMain termination");
|
||||||
|
Log.e("UIAppMain exception: ", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Platform.setInstance(null);
|
Platform.setInstance(null);
|
||||||
|
|
Loading…
Reference in New Issue