Skip to content

Commit

Permalink
migrate from travis to github actions (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlag committed Apr 21, 2024
1 parent d9c74ef commit 18cebe0
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 45 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pride-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PriDE CI

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
java: [11, 17]
database: [hsql, sqlite]

steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: '${{ matrix.java }}'
distribution: 'temurin'
cache: maven
- name: Build with Maven with database ${{ matrix.database }}
run: mvn clean test -B -P travis -Duser.name=${{ matrix.database }} --settings config/mvnsettings-for-github-actions.xml

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@v4
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion config/postgres.test.config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pride.dbtype=postgres
pride.driver=org.postgresql.Driver
pride.db=jdbc:postgresql:test
pride.user=postgres
pride.password=
pride.password=postgres
pride.logfile=sql.log
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See doc/PriDE-History.html for release notes!

## Building PriDE

PriDE is a Maven-based project. The JUnit-Tests can be executed against different types of databases.
At the moment the following types of databases are supported and actively tested on [Travis CI](https://travis-ci.org/j-pride/pride.pm):
PriDE is a Maven-based project. The tests can be executed using different types of databases.
Currently, the following databases are supported:

* HSQLDB (Version 2.x)
* SQLite (Version 3.x)
Expand All @@ -31,16 +31,16 @@ To build PriDE _and_ execute all tests, you have to specify a database to run th
mvn package -Duser.name=[mysql,hsql,mariadb,oracle,postgres,sqlite,db2]

To just build PriDE without execute any tests run

mvn package -DskipTests

Afterwards the built jar can be found in `target/pride-<Major-Version>-SNAPSHOT-<Git-Commit-ID>.jar`

### Preperations needed for Oracle
### Preparations needed for Oracle

If you plan to use an Oracle database, you have to manually install the JDBC driver into your local maven repository.
Download the ojdbc8.jar from the [Oracle Technology Network](http://www.oracle.com/technetwork/database/features/jdbc/jdbc-ucp-122-3110062.html).
Afterwards you can install it into your local repository by executing the following command
Afterward you can install it into your local repository by executing the following command

mvn install:install-file -DgroupId=com.oracle.jdbc -DartifactId=ojdbc8 -Dversion=12.2.0.1 -Dpackaging=jar -Dfile=ojdbc8.jar -DgeneratePom=true

0 comments on commit 18cebe0

Please sign in to comment.