You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-15 01:24:34 +02:00
Moved users creation in core
This commit is contained in:
@ -18,10 +18,6 @@ install:
|
|||||||
before_script:
|
before_script:
|
||||||
- docker-compose -v
|
- docker-compose -v
|
||||||
- docker-compose -f tests/build.yml build
|
- docker-compose -f tests/build.yml build
|
||||||
- docker-compose up -d admin
|
|
||||||
- docker-compose exec admin python manage.py admin admin mailu.io password
|
|
||||||
- docker-compose exec admin python manage.py user --hash_scheme='SHA512-CRYPT' user mailu.io 'password'
|
|
||||||
- docker-compose down
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# test.py, test name and timeout between start and tests.
|
# test.py, test name and timeout between start and tests.
|
||||||
|
3
tests/compose/core/00_create_users.sh
Executable file
3
tests/compose/core/00_create_users.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
echo "Creating users ..."
|
||||||
|
docker-compose -f tests/compose/core/docker-compose.yml exec admin python manage.py admin admin mailu.io password || exit 1
|
||||||
|
docker-compose -f tests/compose/core/docker-compose.yml exec admin python manage.py user --hash_scheme='SHA512-CRYPT' user mailu.io 'password' || exit 1
|
@ -69,13 +69,14 @@ def print_logs():
|
|||||||
#Iterating over hooks in test folder and running them
|
#Iterating over hooks in test folder and running them
|
||||||
def hooks():
|
def hooks():
|
||||||
print("Running hooks")
|
print("Running hooks")
|
||||||
os.system("python3 tests/compose/email_test.py")
|
|
||||||
for test_file in sorted(os.listdir(test_path)):
|
for test_file in sorted(os.listdir(test_path)):
|
||||||
if test_file.endswith(".py"):
|
if test_file.endswith(".py"):
|
||||||
os.system("python3 " + test_path + test_file)
|
os.system("python3 " + test_path + test_file)
|
||||||
elif test_file.endswith(".sh"):
|
elif test_file.endswith(".sh"):
|
||||||
os.system("./" + test_path + test_file)
|
os.system("./" + test_path + test_file)
|
||||||
|
|
||||||
|
os.system("python3 tests/compose/email_test.py")
|
||||||
|
|
||||||
# Start up containers
|
# Start up containers
|
||||||
os.system("mkdir -p /mailu && cp -r tests/certs /mailu")
|
os.system("mkdir -p /mailu && cp -r tests/certs /mailu")
|
||||||
os.system("chmod 600 /mailu/certs/* ")
|
os.system("chmod 600 /mailu/certs/* ")
|
||||||
|
Reference in New Issue
Block a user