...
Note: The cross-database testing documented below is also included in Fedora's Travis-CI configuration.
Running integration tests against different DBs
Running against PostgreSQL
- Start your postgres database. One way of doing this is via Docker (see postgres instructions).
- Run the Fedora build (assuming db username and password from Docker setup above)
No Format DB=postgresql DB_PORT=5432 mvn -Dfcrepo.db.url="jdbc:${DB}://localhost:${DB_PORT}/fcrepo" -Dfcrepo.db.user="fcrepo-user" -Dfcrepo.db.password="fcrepo-pw" clean install -P db-test
Running against MariaDB
- Start your postgres database. One way of doing this is via Docker (see mariadb instructions).
- Run the Fedora build (assuming db username and password from Docker setup above)
No Format DB=mariadb DB_PORT=3306 mvn -Dfcrepo.db.url="jdbc:${DB}://localhost:${DB_PORT}/fcrepo" -Dfcrepo.db.user="fcrepo-user" -Dfcrepo.db.password="fcrepo-pw" clean install -P db-test
Running against MySQL
- Start your postgres database. One way of doing this is via Docker (see mysql instructions).
- Run the Fedora build (assuming db username and password from Docker setup above)
No Format DB=mysql DB_PORT=3306 mvn -Dfcrepo.db.url="jdbc:${DB}://localhost:${DB_PORT}/fcrepo" -Dfcrepo.db.user="fcrepo-user" -Dfcrepo.db.password="fcrepo-pw" clean install -P db-test