improve build and test
This commit is contained in:
parent
6a40687804
commit
bba7d4cb36
|
@ -5,4 +5,6 @@
|
|||
# Gradle output
|
||||
/.gradle
|
||||
/build
|
||||
/gradle.properties
|
||||
/gradle.properties
|
||||
buildSrc/build
|
||||
buildSrc/.gradle
|
|
@ -68,10 +68,6 @@ test {
|
|||
}
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '4.7'
|
||||
}
|
||||
|
||||
task install (type: im.status.keycard.build.InstallTask)
|
||||
|
||||
if (testTarget == 'card') {
|
||||
|
|
|
@ -57,7 +57,7 @@ public class InstallTask extends DefaultTask {
|
|||
logger.info("Deleting the old instances and package (if present)");
|
||||
cmdSet.deleteKeycardInstancesAndPackage();
|
||||
logger.info("Loading the new package");
|
||||
cmdSet.loadKeycardPackage(new FileInputStream("build/javacard/im/status/keycard/javacard/keycard.cap"), new LoadCallback() {
|
||||
cmdSet.loadKeycardPackage(new FileInputStream(this.getProject().file("build/javacard/im/status/keycard/javacard/keycard.cap")), new LoadCallback() {
|
||||
@Override
|
||||
public void blockLoaded(int loadedBlock, int blockCount) {
|
||||
logger.info("Loaded block " + loadedBlock + "/" + blockCount);
|
||||
|
|
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
@ -28,7 +28,7 @@ APP_NAME="Gradle"
|
|||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
|
|
@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0
|
|||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
|
Loading…
Reference in New Issue