Skip to content

Commit b76db3c

Browse files
committed
add gradle files for tests
1 parent 008cd70 commit b76db3c

File tree

3 files changed

+32
-20
lines changed

3 files changed

+32
-20
lines changed

.gitignore

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,10 @@ gradle.properties
1818
build.properties
1919
local.properties
2020

21-
### CMake build files
22-
CMakeFiles/
23-
CMakeCache.txt
24-
Makefile
25-
*.cmake
26-
.externalNativeBuild
27-
cmake-build-debug/
28-
# used by build.sh script
29-
cbuild/
30-
3121
# Native libs
3222
objectbox*.dll
3323
libobjectbox*.so
3424

35-
### Build script
36-
/Release/
37-
/Debug/
38-
3925
### Test DB files
4026
data.mdb
4127
lock.mdb
@@ -44,7 +30,6 @@ jni-unit-test-db/
4430
test-db64/
4531
perf-test-db/
4632
perf-test-db64/
47-
tests/test-entity-annotations/objectbox/
4833

4934
## Backups
5035
.gitignore~
@@ -53,8 +38,3 @@ default.json.bak
5338

5439
# Java crash reports
5540
hs_err_pid*.log
56-
57-
# Misc
58-
callgrind.out.*
59-
/captures/
60-
valgrind.log
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apply plugin: 'java'
2+
3+
uploadArchives.enabled = false
4+
5+
targetCompatibility = '1.7'
6+
sourceCompatibility = '1.7'
7+
8+
dependencies {
9+
compile project(':objectbox-java')
10+
compile 'org.greenrobot:essentials:3.0.0-RC1'
11+
12+
// Right now, test sources are in src/main not src/test
13+
compile 'junit:junit:4.12'
14+
}
15+
16+
test {
17+
// This is pretty useless now because it floods console with warnings about internal Java classes
18+
// However we might check from time to time, also with Java 9.
19+
// jvmArgs '-Xcheck:jni'
20+
}

tests/test-proguard/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apply plugin: 'java'
2+
3+
uploadArchives.enabled = false
4+
5+
sourceCompatibility = 1.7
6+
targetCompatibility = 1.7
7+
8+
dependencies {
9+
compile project(':objectbox-java')
10+
compile project(':objectbox-java-api')
11+
testCompile 'junit:junit:4.12'
12+
}

0 commit comments

Comments
 (0)