Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to locally run tests suites on CI docker containers
- Loading branch information
1 parent
f2945b4
commit 3d0ce14
Showing
14 changed files
with
277 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -e | ||
|
||
ROOT_DIR=$(readlink -f "$(dirname $0)/../..") | ||
|
||
echo "Initialize email fixtures" | ||
docker-compose exec -T --user root dovecot doveadm expunge -u glpi mailbox 'INBOX' all | ||
docker-compose exec -T --user root dovecot doveadm purge -u glpi | ||
for f in `ls $ROOT_DIR/tests/emails-tests/*.eml`; do | ||
cat $f | docker-compose exec -T --user glpi dovecot getmail_maildir /home/glpi/Maildir/ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/bin/bash -e | ||
|
||
LOG_FILE="./tests/files/_log/install.log" | ||
mkdir -p $(dirname "$LOG_FILE") | ||
|
||
# Execute install | ||
bin/console glpi:database:install \ | ||
--config-dir=./tests --ansi --no-interaction \ | ||
--reconfigure --db-name=glpi --db-host=db --db-user=root | ||
--config-dir=./tests/config --ansi --no-interaction \ | ||
--reconfigure --db-name=glpi --db-host=db --db-user=root --force | ||
|
||
# Execute update | ||
## Should do nothing. | ||
bin/console glpi:database:update --config-dir=./tests --ansi --no-interaction | tee migration.log | ||
if [[ -z $(grep "No migration needed." migration.log) ]]; | ||
bin/console glpi:database:update --config-dir=./tests/config --ansi --no-interaction | tee $LOG_FILE | ||
if [[ -z $(grep "No migration needed." $LOG_FILE) ]]; | ||
then echo "glpi:database:update command FAILED" && exit 1; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.