You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by al...@apache.org on 2016/04/18 16:54:15 UTC
[1/5] nifi git commit: NIFI-1654 - Adjusting file handling for
TestFileSystemRepository to address the following in the CI environment.
testBogusFile on
testBogusFile(org.apache.nifi.controller.repository.TestFileSystemRepository)(org.apache.nifi.control
[Forced Update!]
Repository: nifi
Updated Branches:
refs/heads/NIFI-1654 ab7d093f7 -> e7b1cd611 (forced update)
NIFI-1654 - Adjusting file handling for TestFileSystemRepository to address the following in the CI environment.
testBogusFile on testBogusFile(org.apache.nifi.controller.repository.TestFileSystemRepository)(org.apache.nifi.controller.repository.TestFileSystemRepository) Time elapsed: 0.418 sec <<< FAILURE!
java.lang.AssertionError: null
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertTrue(Assert.java:52)
at org.apache.nifi.controller.repository.TestFileSystemRepository.testBogusFile(TestFileSystemRepository.java:122)
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/e7b1cd61
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/e7b1cd61
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/e7b1cd61
Branch: refs/heads/NIFI-1654
Commit: e7b1cd611f9c2d83e1b7b333dab7c1e56fcbd4c9
Parents: a4ef5a1
Author: Aldrin Piri <al...@apache.org>
Authored: Sun Apr 17 10:25:05 2016 -0400
Committer: Aldrin Piri <al...@apache.org>
Committed: Mon Apr 18 10:42:43 2016 -0400
----------------------------------------------------------------------
.../nifi/controller/repository/TestFileSystemRepository.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/e7b1cd61/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java
index c40d0e3..dee807b 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java
@@ -44,7 +44,9 @@ import org.apache.nifi.stream.io.StreamUtils;
import org.apache.nifi.util.NiFiProperties;
import org.junit.After;
import org.junit.Before;
+import org.junit.Rule;
import org.junit.Test;
+import org.junit.rules.TemporaryFolder;
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.Level;
@@ -54,15 +56,17 @@ import ch.qos.logback.core.read.ListAppender;
public class TestFileSystemRepository {
- public static final int NUM_REPO_SECTIONS = 1;
+ @Rule
+ public TemporaryFolder rootTestFolder = new TemporaryFolder();
public static final File helloWorldFile = new File("src/test/resources/hello.txt");
private FileSystemRepository repository = null;
- private final File rootFile = new File("target/content_repository");
+ private File rootFile;
@Before
public void setup() throws IOException {
+ rootFile = new File(rootTestFolder.getRoot().getAbsolutePath() + "/content_repository");
System.setProperty(NiFiProperties.PROPERTIES_FILE_PATH, "src/test/resources/nifi.properties");
if (rootFile.exists()) {
DiskUtils.deleteRecursively(rootFile);
[4/5] nifi git commit: NIFI-1654 Using temporary folders via JUnit
for each test within TestProcessorLifecycle
Posted by al...@apache.org.
NIFI-1654 Using temporary folders via JUnit for each test within TestProcessorLifecycle
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/a4ef5a1b
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/a4ef5a1b
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/a4ef5a1b
Branch: refs/heads/NIFI-1654
Commit: a4ef5a1badf0ae475acb1ba73867702aa5f89c80
Parents: 729a6cc
Author: Aldrin Piri <al...@apache.org>
Authored: Sat Apr 16 23:58:14 2016 -0400
Committer: Aldrin Piri <al...@apache.org>
Committed: Mon Apr 18 10:42:43 2016 -0400
----------------------------------------------------------------------
.../scheduling/TestProcessorLifecycle.java | 59 +++++++++++---------
1 file changed, 34 insertions(+), 25 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/a4ef5a1b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/scheduling/TestProcessorLifecycle.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/scheduling/TestProcessorLifecycle.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/scheduling/TestProcessorLifecycle.java
index 560c4cb..0fb0da4 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/scheduling/TestProcessorLifecycle.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/scheduling/TestProcessorLifecycle.java
@@ -63,7 +63,9 @@ import org.apache.nifi.provenance.MockProvenanceEventRepository;
import org.apache.nifi.util.NiFiProperties;
import org.junit.After;
import org.junit.Before;
+import org.junit.Rule;
import org.junit.Test;
+import org.junit.rules.TemporaryFolder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -75,18 +77,23 @@ public class TestProcessorLifecycle {
private static final Logger logger = LoggerFactory.getLogger(TestProcessorLifecycle.class);
+ @Rule
+ public TemporaryFolder temporaryFolder = new TemporaryFolder();
+
@Before
public void before() {
System.setProperty("nifi.properties.file.path", "src/test/resources/nifi.properties");
NiFiProperties.getInstance().setProperty(NiFiProperties.ADMINISTRATIVE_YIELD_DURATION, "1 sec");
NiFiProperties.getInstance().setProperty(NiFiProperties.STATE_MANAGEMENT_CONFIG_FILE, "target/test-classes/state-management.xml");
NiFiProperties.getInstance().setProperty(NiFiProperties.STATE_MANAGEMENT_LOCAL_PROVIDER_ID, "local-provider");
+ NiFiProperties.getInstance().setProperty(NiFiProperties.FLOWFILE_REPOSITORY_DIRECTORY, temporaryFolder.getRoot().getAbsolutePath() + "/flowfile_repo");
+ NiFiProperties.getInstance().setProperty(NiFiProperties.REPOSITORY_CONTENT_PREFIX + "default", temporaryFolder.getRoot().getAbsolutePath() + "/content_repo");
}
@After
public void after() throws Exception {
- FileUtils.deleteDirectory(new File("./target/test-repo"));
- FileUtils.deleteDirectory(new File("./target/content_repository"));
+ FileUtils.deleteDirectory(new File(temporaryFolder.getRoot().getAbsolutePath() + "/flowfile_repo"));
+ FileUtils.deleteDirectory(new File(temporaryFolder.getRoot().getAbsolutePath() + "/content_repo"));
}
@Test
@@ -95,7 +102,7 @@ public class TestProcessorLifecycle {
ProcessGroup testGroup = fc.createProcessGroup(UUID.randomUUID().toString());
this.setControllerRootGroup(fc, testGroup);
final ProcessorNode testProcNode = fc.createProcessor(TestProcessor.class.getName(),
- UUID.randomUUID().toString());
+ UUID.randomUUID().toString());
assertEquals(ScheduledState.STOPPED, testProcNode.getScheduledState());
assertEquals(ScheduledState.STOPPED, testProcNode.getPhysicalScheduledState());
@@ -118,7 +125,7 @@ public class TestProcessorLifecycle {
ProcessGroup testGroup = fc.createProcessGroup(UUID.randomUUID().toString());
this.setControllerRootGroup(fc, testGroup);
final ProcessorNode testProcNode = fc.createProcessor(TestProcessor.class.getName(),
- UUID.randomUUID().toString());
+ UUID.randomUUID().toString());
testProcNode.setProperty("P", "hello");
assertEquals(ScheduledState.STOPPED, testProcNode.getScheduledState());
assertEquals(ScheduledState.STOPPED, testProcNode.getPhysicalScheduledState());
@@ -640,7 +647,7 @@ public class TestProcessorLifecycle {
properties.setProperty("nifi.remote.input.secure", "");
return FlowController.createStandaloneInstance(mock(FlowFileEventRepository.class), properties,
- mock(UserService.class), mock(AuditService.class), null);
+ mock(UserService.class), mock(AuditService.class), null);
}
/**
@@ -677,7 +684,7 @@ public class TestProcessorLifecycle {
private final List<String> operationNames = new LinkedList<>();
void setScenario(Runnable onScheduleCallback, Runnable onUnscheduleCallback, Runnable onStopCallback,
- Runnable onTriggerCallback) {
+ Runnable onTriggerCallback) {
this.onScheduleCallback = onScheduleCallback;
this.onUnscheduleCallback = onUnscheduleCallback;
this.onStopCallback = onStopCallback;
@@ -688,7 +695,7 @@ public class TestProcessorLifecycle {
public void schedule(ProcessContext ctx) {
this.operationNames.add("@OnScheduled");
if (this.generateExceptionOnScheduled
- && this.onScheduledExceptionCount++ < this.keepFailingOnScheduledTimes) {
+ && this.onScheduledExceptionCount++ < this.keepFailingOnScheduledTimes) {
throw new RuntimeException("Intentional");
}
this.onScheduleCallback.run();
@@ -709,26 +716,26 @@ public class TestProcessorLifecycle {
@Override
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
PropertyDescriptor PROP = new PropertyDescriptor.Builder()
- .name("P")
- .description("Blah Blah")
- .required(true)
- .addValidator(new Validator() {
- @Override
- public ValidationResult validate(final String subject, final String value, final ValidationContext context) {
- return new ValidationResult.Builder().subject(subject).input(value).valid(value != null && !value.isEmpty()).explanation(subject + " cannot be empty").build();
- }
- })
- .build();
+ .name("P")
+ .description("Blah Blah")
+ .required(true)
+ .addValidator(new Validator() {
+ @Override
+ public ValidationResult validate(final String subject, final String value, final ValidationContext context) {
+ return new ValidationResult.Builder().subject(subject).input(value).valid(value != null && !value.isEmpty()).explanation(subject + " cannot be empty").build();
+ }
+ })
+ .build();
PropertyDescriptor SERVICE = new PropertyDescriptor.Builder()
- .name("S")
- .description("Blah Blah")
- .required(true)
- .identifiesControllerService(ITestservice.class)
- .build();
-
- return this.withService ? Arrays.asList(new PropertyDescriptor[] { PROP, SERVICE })
- : Arrays.asList(new PropertyDescriptor[] { PROP });
+ .name("S")
+ .description("Blah Blah")
+ .required(true)
+ .identifiesControllerService(ITestservice.class)
+ .build();
+
+ return this.withService ? Arrays.asList(new PropertyDescriptor[]{PROP, SERVICE})
+ : Arrays.asList(new PropertyDescriptor[]{PROP});
}
@Override
@@ -799,7 +806,9 @@ public class TestProcessorLifecycle {
this.delayLimit = delayLimit;
this.randomDelay = randomDelay;
}
+
Random random = new Random();
+
@Override
public void run() {
try {
[5/5] nifi git commit: Adding appveyor.yml to the list of excluded
items for RAT check.
Posted by al...@apache.org.
Adding appveyor.yml to the list of excluded items for RAT check.
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/7b0066d3
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/7b0066d3
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/7b0066d3
Branch: refs/heads/NIFI-1654
Commit: 7b0066d3d3a83a277448831da2f5e5e8ac75b5dc
Parents: 90fda57
Author: Aldrin Piri <al...@apache.org>
Authored: Mon Apr 11 15:10:51 2016 -0400
Committer: Aldrin Piri <al...@apache.org>
Committed: Mon Apr 18 10:42:43 2016 -0400
----------------------------------------------------------------------
pom.xml | 53 +++++++++++++++++++++++++++--------------------------
1 file changed, 27 insertions(+), 26 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/7b0066d3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index e9a46da..4d0a805 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
-license agreements. See the NOTICE file distributed with this work for additional
-information regarding copyright ownership. The ASF licenses this file to
-You under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of
-the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
-by applicable law or agreed to in writing, software distributed under the
-License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, either express or implied. See the License for the specific
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+license agreements. See the NOTICE file distributed with this work for additional
+information regarding copyright ownership. The ASF licenses this file to
+You under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of
+the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+by applicable law or agreed to in writing, software distributed under the
+License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -103,7 +103,7 @@ language governing permissions and limitations under the License. -->
<repositories>
<repository>
<id>central</id>
- <!-- This should be at top, it makes maven try the central repo
+ <!-- This should be at top, it makes maven try the central repo
first and then others and hence faster dep resolution -->
<name>Maven Repository</name>
<url>https://repo1.maven.org/maven2</url>
@@ -296,8 +296,8 @@ language governing permissions and limitations under the License. -->
<artifactId>quartz</artifactId>
<version>2.2.1</version>
<exclusions>
- <!-- | Exclude the quartz 2.2.1 bundled version of c3p0 because it is
- lgpl licensed | We also don't use the JDBC related features of quartz for
+ <!-- | Exclude the quartz 2.2.1 bundled version of c3p0 because it is
+ lgpl licensed | We also don't use the JDBC related features of quartz for
which the dependency would matter -->
<exclusion>
<groupId>c3p0</groupId>
@@ -367,7 +367,7 @@ language governing permissions and limitations under the License. -->
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
<exclusions>
- <!-- <artifactId>jcl-over-slf4j</artifactId> is used in dependencies
+ <!-- <artifactId>jcl-over-slf4j</artifactId> is used in dependencies
section -->
<exclusion>
<groupId>commons-logging</groupId>
@@ -765,7 +765,7 @@ language governing permissions and limitations under the License. -->
<artifactId>zookeeper</artifactId>
<version>3.4.6</version>
</dependency>
-
+
<!-- Test Dependencies for testing interactions with ZooKeeper -->
<dependency>
<groupId>org.apache.curator</groupId>
@@ -779,7 +779,7 @@ language governing permissions and limitations under the License. -->
<version>6.8.8</version>
<scope>test</scope>
</dependency>
- <dependency>
+ <dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.8.3</version>
@@ -1453,7 +1453,7 @@ language governing permissions and limitations under the License. -->
</module>
<module name="OuterTypeFilename" />
<module name="LineLength">
- <!-- needs extra, because Eclipse formatter ignores the ending left
+ <!-- needs extra, because Eclipse formatter ignores the ending left
brace -->
<property name="max" value="200" />
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://" />
@@ -1523,6 +1523,7 @@ language governing permissions and limitations under the License. -->
<exclude>nbactions.xml</exclude> <!-- courtesy excludes for netbeans users -->
<exclude>DEPENDENCIES</exclude> <!-- auto generated file by apache's maven config while building sources.zip -->
<exclude>.travis.yml</exclude> <!-- Travis CI Build Descriptor File -->
+ <exclude>appveyor.yml</exclude> <!-- AppVeyor CI Build Descriptor File -->
</excludes>
</configuration>
<dependencies>
@@ -1566,11 +1567,11 @@ language governing permissions and limitations under the License. -->
</build>
</profile>
<profile>
- <!-- Checks style and licensing requirements. This is a good idea to run
- for contributions and for the release process. While it would be nice to
- run always these plugins can considerably slow the build and have proven
- to create unstable builds in our multi-module project and when building using
- multiple threads. The stability issues seen with Checkstyle in multi-module
+ <!-- Checks style and licensing requirements. This is a good idea to run
+ for contributions and for the release process. While it would be nice to
+ run always these plugins can considerably slow the build and have proven
+ to create unstable builds in our multi-module project and when building using
+ multiple threads. The stability issues seen with Checkstyle in multi-module
builds include false-positives and false negatives. -->
<id>contrib-check</id>
<build>
@@ -1603,11 +1604,11 @@ language governing permissions and limitations under the License. -->
</build>
</profile>
<profile>
- <!-- This profile will disable DocLint which performs strict
- JavaDoc processing which was introduced in JDK 8. These are technically errors
- in the JavaDoc which we need to eventually address. However, if a release
- is performed using JDK 8, the JavaDoc generation would fail. By activating
- this profile when running on JDK 8 we can ensure the JavaDocs continue to
+ <!-- This profile will disable DocLint which performs strict
+ JavaDoc processing which was introduced in JDK 8. These are technically errors
+ in the JavaDoc which we need to eventually address. However, if a release
+ is performed using JDK 8, the JavaDoc generation would fail. By activating
+ this profile when running on JDK 8 we can ensure the JavaDocs continue to
generate successfully -->
<id>disable-doclint</id>
<activation>
[2/5] nifi git commit: NIFI-1654 Adjusting configuration for Appveyor
CI.
Posted by al...@apache.org.
NIFI-1654 Adjusting configuration for Appveyor CI.
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/729a6cc6
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/729a6cc6
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/729a6cc6
Branch: refs/heads/NIFI-1654
Commit: 729a6cc6065358c76204385ac19ab2dcfe13ba33
Parents: 7b0066d
Author: Aldrin Piri <al...@apache.org>
Authored: Wed Apr 13 23:40:12 2016 -0400
Committer: Aldrin Piri <al...@apache.org>
Committed: Mon Apr 18 10:42:43 2016 -0400
----------------------------------------------------------------------
appveyor.yml | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/729a6cc6/appveyor.yml
----------------------------------------------------------------------
diff --git a/appveyor.yml b/appveyor.yml
index 932211a..9f979ea 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,20 +1,22 @@
-version: '0.6.0-SNAPSHOT-{build}'
+version: '0.7.0-SNAPSHOT-{build}'
os: Windows Server 2012
+environment:
+ JAVA_HOME: C:\Program Files\Java\jdk1.7.0
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile(
- 'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip',
+ 'http://www.us.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.zip',
'C:\maven-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- - cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;%JAVA_HOME%\bin;%PATH%
+ - cmd: SET PATH=C:\maven\apache-maven-3.1.1\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
build_script:
- - mvn clean package --batch-mode -DskipTest
+ - mvn clean package --batch-mode -DskipTests
test_script:
- mvn clean install --batch-mode -Pcontrib-check
cache:
[3/5] nifi git commit: NIFI-1654 Creating an initial appveyor.yml
file.
Posted by al...@apache.org.
NIFI-1654 Creating an initial appveyor.yml file.
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/90fda57e
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/90fda57e
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/90fda57e
Branch: refs/heads/NIFI-1654
Commit: 90fda57e1e11055a5e867cb7069bfaa4888abd9c
Parents: 3e6f1f8
Author: Aldrin Piri <al...@apache.org>
Authored: Fri Mar 25 10:54:50 2016 -0400
Committer: Aldrin Piri <al...@apache.org>
Committed: Mon Apr 18 10:42:43 2016 -0400
----------------------------------------------------------------------
appveyor.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/90fda57e/appveyor.yml
----------------------------------------------------------------------
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..932211a
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,22 @@
+version: '0.6.0-SNAPSHOT-{build}'
+os: Windows Server 2012
+install:
+ - ps: |
+ Add-Type -AssemblyName System.IO.Compression.FileSystem
+ if (!(Test-Path -Path "C:\maven" )) {
+ (new-object System.Net.WebClient).DownloadFile(
+ 'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip',
+ 'C:\maven-bin.zip'
+ )
+ [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
+ }
+ - cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;%JAVA_HOME%\bin;%PATH%
+ - cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
+ - cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
+build_script:
+ - mvn clean package --batch-mode -DskipTest
+test_script:
+ - mvn clean install --batch-mode -Pcontrib-check
+cache:
+ - C:\maven\
+ - C:\Users\appveyor\.m2