Add Gitlab CI

pull/2/head
Ricki Hirner 8 years ago
parent 593d907e3a
commit ec0e792f12

@ -0,0 +1,20 @@
image: registry.gitlab.com/bitfireat/davdroid:latest
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x gradlew
- emulator64-arm -avd test -no-skin -no-audio -no-window & wait-for-emulator.sh
cache:
paths:
- .gradle/wrapper
- .gradle/caches
test:
script:
- ./gradlew -i check mergeAndroidReports
artifacts:
paths:
- app/build/outputs/lint-results-debug.html
- app/build/reports
- build/reports

@ -1,4 +1,7 @@
[![build status](https://gitlab.com/bitfireAT/davdroid/badges/master/build.svg)](https://gitlab.com/bitfireAT/davdroid/commits/master)
DAVdroid
========
@ -31,4 +34,3 @@ Those libraries are used by DAVdroid (alphabetically):
* [iCal4j](http://ical4j.sourceforge.net/) [New BSD License](http://sourceforge.net/p/ical4j/ical4j/ci/default/tree/LICENSE)
* [okhttp](https://square.github.io/okhttp/) [Apache License, Version 2.0](https://square.github.io/okhttp/#license)
* [Project Lombok](http://projectlombok.org/) [MIT License](http://opensource.org/licenses/mit-license.php)
* [SLF4J](http://www.slf4j.org/) [MIT License](http://www.slf4j.org/license.html)

@ -17,6 +17,7 @@ import android.content.SyncResult;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Bundle;
import android.provider.CalendarContract;
@ -68,10 +69,10 @@ public class CalendarsSyncAdapterService extends SyncAdapterService {
CalendarSyncManager syncManager = new CalendarSyncManager(getContext(), account, settings, extras, authority, syncResult, calendar);
syncManager.performSync();
}
} catch (CalendarStorageException e) {
App.log.log(Level.SEVERE, "Couldn't enumerate local calendars", e);
} catch(CalendarStorageException|SQLiteException e) {
App.log.log(Level.SEVERE, "Couldn't prepare local calendars", e);
syncResult.databaseError = true;
} catch (InvalidAccountException e) {
} catch(InvalidAccountException e) {
App.log.log(Level.SEVERE, "Couldn't get account settings", e);
}

@ -1 +1 @@
Subproject commit 489056f740ba8d7ccddaa99d29162e11651116bb
Subproject commit e4dc98008708b399aafba1190ef1f3f4a09d8180

@ -1 +1 @@
Subproject commit 4e550cdcda7c2b3c969d20f1a99770deafafd6e8
Subproject commit 7e8cbcfd6e959b9ed55fdaf434c7a3401630d6b5

@ -1 +1 @@
Subproject commit 85f4d947089ac3e0b7a61cbedfc69dd6ec7f235d
Subproject commit 9c6d977a54a53903f7240a4028170193276a1e44

@ -1 +1 @@
Subproject commit 788eedf46672b6266fabe65e42cf07e0396627bf
Subproject commit b695eab1b14651190f60f63eb6aebd1f9e5b89f6
Loading…
Cancel
Save