Skip to content

Commit f0d0267

Browse files
authored
Add Circleci config file (#2)
1 parent c0cbc91 commit f0d0267

File tree

5 files changed

+47
-5
lines changed

5 files changed

+47
-5
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: circleci/openjdk:8
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
key: java-snapshot-matcher-{{ checksum "snapshot-matcher/pom.xml" }}-{{ checksum "snapshot-matcher-example/pom.xml" }}
11+
- run: cd snapshot-matcher && mvn dependency:go-offline
12+
- run: cd snapshot-matcher && mvn install
13+
- run: cd snapshot-matcher-example && mvn dependency:go-offline
14+
- run: cd snapshot-matcher-example && mvn test
15+
- save_cache:
16+
paths:
17+
- ~/.m2
18+
key: java-snapshot-matcher-{{ checksum "snapshot-matcher/pom.xml" }}-{{ checksum "snapshot-matcher-example/pom.xml" }}
19+
- store_test_results:
20+
path: snapshot-matcher-example/target/surefire-reports

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot-matcher-example/pom.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@
88
<artifactId>snapshot-matcher-example</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

11+
<properties>
12+
<jdk.version>1.8</jdk.version>
13+
<maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
14+
</properties>
15+
16+
<build>
17+
<plugins>
18+
<plugin>
19+
<groupId>org.apache.maven.plugins</groupId>
20+
<artifactId>maven-compiler-plugin</artifactId>
21+
<version>${maven-compiler-plugin.version}</version>
22+
<configuration>
23+
<source>${jdk.version}</source>
24+
<target>${jdk.version}</target>
25+
</configuration>
26+
</plugin>
27+
</plugins>
28+
</build>
29+
1130
<dependencies>
1231
<dependency>
1332
<groupId>junit</groupId>
1433
<artifactId>junit</artifactId>
15-
<version>RELEASE</version>
34+
<version>4.12</version>
35+
<scope>test</scope>
1636
</dependency>
1737

1838
<dependency>

snapshot-matcher-example/snapshot-matcher-example.iml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3-
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
44
<output url="file://$MODULE_DIR$/target/classes" />
55
<output-test url="file://$MODULE_DIR$/target/test-classes" />
66
<content url="file://$MODULE_DIR$">
@@ -12,8 +12,8 @@
1212
</content>
1313
<orderEntry type="inheritedJdk" />
1414
<orderEntry type="sourceFolder" forTests="false" />
15-
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
16-
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15+
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
16+
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
1717
<orderEntry type="module" module-name="snapshot-matcher" />
1818
<orderEntry type="library" name="Maven: com.googlecode.java-diff-utils:diffutils:1.3.0" level="project" />
1919
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-all:1.3" level="project" />

snapshot-matcher/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
<jackson.version>2.4.6</jackson.version>
1515
<diffutils.version>1.3.0</diffutils.version>
1616
<hamcrest.version>1.3</hamcrest.version>
17+
<maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
1718
</properties>
1819

1920
<build>
2021
<plugins>
2122
<plugin>
2223
<groupId>org.apache.maven.plugins</groupId>
2324
<artifactId>maven-compiler-plugin</artifactId>
25+
<version>${maven-compiler-plugin.version}</version>
2426
<configuration>
2527
<source>${jdk.version}</source>
2628
<target>${jdk.version}</target>

0 commit comments

Comments
 (0)