Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate from travis to github actions #17

Merged
merged 1 commit into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

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

Loading