Skip to content

Commit

Permalink
Add script to run all integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julgus committed Aug 30, 2023
1 parent 9b1d0eb commit 59dc505
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions integration-tests/run-integration-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# Run sakila database
docker run --platform linux/amd64 -d --publish 3306:3306 --name mysqld restsql/mysql-sakila

# Run inheritance test database
cd src/test/java/com/speedment/jpastreamer/integration/test/inheritance
docker-compose rm -v -f -s test-db && docker-compose up -d

# Run second inheritance test database
cd ../inheritance2
docker-compose rm -v -f -s test-db-2 && docker-compose up -d

echo "Waiting for containers to start..."
sleep 10

# Run tests
cd ../../../../../../../../../
mvn clean install

0 comments on commit 59dc505

Please sign in to comment.