Skip to content

Commit

Permalink
resolves fakemongo#356 switch to GitHub Actions
Browse files Browse the repository at this point in the history
Travis CI no longer offers Java < 9
  • Loading branch information
slonopotamus committed Nov 9, 2020
1 parent 7301aa1 commit eda73c5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
java: [7, 8, 9]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Test
run: mvn clean install
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<scala.version>2.11.6</scala.version>
<scala.version>2.11.12</scala.version>
<version.surefire>2.18.1</version.surefire>

<!-- Jacoco -->
Expand Down Expand Up @@ -236,7 +236,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<version>0.7.9</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -308,6 +308,7 @@
<arg>-unchecked</arg>
<arg>-deprecation</arg>
<arg>-feature</arg>
<arg>-nobootcp</arg>
</args>
<!--<recompileMode>incremental</recompileMode>-->
<!--<useZincServer>false</useZincServer>-->
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/mongodb/FongoDBCollection.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import org.bson.types.ObjectId;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;


import static com.mongodb.assertions.Assertions.isTrueArgument;
Expand Down Expand Up @@ -1211,7 +1210,7 @@ BulkWriteResult executeBulkWriteOperation(final boolean ordered, final Boolean b
}
}
} else {
throw new NotImplementedException();
throw new UnsupportedOperationException();
}
idx++;
}
Expand Down

0 comments on commit eda73c5

Please sign in to comment.