Skip to content

Commit

Permalink
Merge pull request #345 from Tyrael/travis
Browse files Browse the repository at this point in the history
adding some CI integrations
  • Loading branch information
Exslims authored Jan 11, 2019
2 parents 2169d96 + 74734b4 commit c81fdc6
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
language: java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.sun.jna.platform.DesktopWindow;
import com.sun.jna.platform.WindowUtils;
import org.junit.Before;
import org.junit.Test;
import rx.observers.TestSubscriber;

Expand All @@ -11,6 +12,12 @@


public class MercuryStoreCoreTest {
private static final boolean IS_WINDOWS = System.getProperty("os.name").startsWith("Windows");
@Before
public void windowsOnly() {
org.junit.Assume.assumeTrue(IS_WINDOWS);
}

@Test
public void testSoundReducer() throws IOException {
TestSubscriber<Map<String,String>> testSubscriber = new TestSubscriber<>();
Expand Down
28 changes: 28 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# http://www.appveyor.com/docs/appveyor-yml
# This is the standard AppVeyor project for the SDK
# It builds pulls requests and merges to master to ensure that no tests have broken
#
# This follows the 3-project AppVeyor/Maven pattern established in https://github.com/dblock/log4jna/blob/master/AppVeyorMavenRelease.md

# https://www.appveyor.com/docs/build-environment/#java
# Use the standard "Visual Studio 2015" image, since that has all the required Maven tools

environment:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
M2: $(USERPROFILE)\.m2

install:
# Log versions for debugging
- java -version
- mvn --version

build_script:
- mvn -B clean install -Djna.nosys=true

# Maven runs the tests as part of the build, so we don't need to run them again
test: off

cache:
# Cache Maven and m.2
- '%MAVEN_HOME%'
- '%M2%'
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<module>app</module>
<module>app-ui</module>
<module>app-core</module>
<!--<module>app-shared</module>-->
<module>app-shared</module>
<module>app-local-updater</module>
</modules>
<packaging>pom</packaging>
Expand Down

0 comments on commit c81fdc6

Please sign in to comment.