fix: run wget in quiet mode and adapt MAILDEV_URL based on environment

wip-infra-tests
Aravinth Manivannan 2022-06-23 23:52:04 +05:30
parent fb5267a13b
commit 28fe03b861
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 13 additions and 3 deletions

View File

@ -3,7 +3,7 @@ pipeline:
image: python
environment:
- DATABSE_URL=postgres://postgres:password@database:5432/postgres
- EMAIL_URL=smtp://admin:password@localhost:10025
- EMAIL_URL=smtp://admin:password@smtp:10025
commands:
- pip install virtualenv
- make env
@ -31,5 +31,6 @@ services:
container_name: hostea-dash-maildev
environment:
- MAILDEV_SMTP_PORT=10025
- MAILDEV_WEB_PORT=1080
- MAILDEV_INCOMING_USER=admin
- MAILDEV_INCOMING_PASS=password

View File

@ -7,7 +7,8 @@ readonly SERVER_PID_FILE=./tmp/gitea.pid
readonly DASHBOARD_URL="http://localhost:8000"
readonly GITEA_URL="http://localhost:3000"
readonly MAILDEV_URL="http://localhost:1080"
readonly DASHBOARD_OIDC_DISCOVERY_URL="$DASHBOARD_URL/o/.well-known/openid-configuration/"
readonly DASHBOARD_ADMIN_USERNAME=root
@ -30,6 +31,14 @@ readonly HOSTEA_CUSTOMER_USERNAME=batman
readonly HOSTEA_CUSTOMER_PASSWORD=supercomplicatedpassword
readonly HOSTEA_CUSTOMER_EMAIL="$HOSTEA_CUSTOMER_USERNAME@example.org"
if [ -z ${CI+x} ];
then
MAILDEV_URL="http://localhost:1080"
else
MAILDEV_URL="http://smtp:1080"
fi
OIDC_CLIENT_ID=""
OIDC_CLIENT_SECRET=""
@ -138,7 +147,7 @@ gitea(){
if [ ! -e $BIN ];
then
wget --output-document=$BIN $SOURCE
wget --quiet --output-document=$BIN $SOURCE
chmod +x $BIN
fi