Skip to content

Commit

Permalink
Merge pull request #179 from HSLdevcom/develop
Browse files Browse the repository at this point in the history
1.3.21
  • Loading branch information
mjaakko authored Mar 11, 2021
2 parents 4088645 + 739a97d commit 4e1dac4
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 80 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test and publish Maven package

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn clean package -Dmaven.javadoc.skip=true -B -V
- name: Run integration tests
run: mvn failsafe:integration-test && mvn failsafe:verify
publish:
needs: test
runs-on: ubuntu-latest
# Run only for tagged commits
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

14 changes: 10 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fi.hsl</groupId>
<artifactId>transitdata-common</artifactId>
<version>1.3.20</version>
<version>1.3.21</version>
<packaging>jar</packaging>
<name>Common utilities for Transitdata projects</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<pulsar.version>2.3.1</pulsar.version>
<testcontainers.version>1.9.0</testcontainers.version>
<testcontainers.version>1.15.2</testcontainers.version>
</properties>

<profiles>
Expand Down Expand Up @@ -45,6 +45,14 @@
</profile>
</profiles>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub HSLdevcom Apache Maven Packages</name>
<url>https://maven.pkg.github.com/HSLdevcom/transitdata-common</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
Expand Down Expand Up @@ -307,7 +315,5 @@
</executions>
</plugin>
</plugins>

</build>

</project>
12 changes: 0 additions & 12 deletions prepare-bintray.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class MockContainers {
private MockContainers() {}

public static GenericContainer newRedisContainer() {
return new GenericContainer("redis:3.0.2")
return new GenericContainer("redis:5.0.6")
.withExposedPorts(6379);
}

Expand Down
26 changes: 0 additions & 26 deletions travis-bintray-deploy.template.json

This file was deleted.

0 comments on commit 4e1dac4

Please sign in to comment.