mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-23 22:52:22 +00:00
REL-0.10 Optimize travis checks to be extended in the future
This commit is contained in:
parent
c4b067a10f
commit
93f03adc58
@ -143,15 +143,6 @@ get_data_mounts() {
|
||||
}
|
||||
|
||||
|
||||
###
|
||||
### Default enabled Docker Versions
|
||||
###
|
||||
get_enabled_versions() {
|
||||
grep -E '^[A-Z]+_SERVER=' "${DEVILBOX_PATH}/.env" | sed 's/_SERVER=/\t/g'
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
@ -305,6 +296,11 @@ devilbox_configure() {
|
||||
}
|
||||
|
||||
|
||||
devilbox_configured_settings() {
|
||||
grep -E '^[A-Z]+_SERVER=' "${DEVILBOX_PATH}/.env" | sed 's/_SERVER=/\t/g'
|
||||
}
|
||||
|
||||
|
||||
devilbox_pull() {
|
||||
# Make sure to pull until success
|
||||
ret=1
|
||||
@ -351,28 +347,13 @@ devilbox_start() {
|
||||
}
|
||||
|
||||
|
||||
devilbox_show() {
|
||||
###
|
||||
### 1. Show Info
|
||||
###
|
||||
print_h2 "Info"
|
||||
|
||||
# Show wanted versions
|
||||
echo "[Wanted] .env settings"
|
||||
echo "------------------------------------------------------------"
|
||||
get_enabled_versions
|
||||
echo
|
||||
|
||||
# Get actual versions
|
||||
echo "[Actual] http://localhost settings"
|
||||
echo "------------------------------------------------------------"
|
||||
devilbox_print_actual_settings() {
|
||||
curl -q http://localhost/index.php 2>/dev/null | \
|
||||
grep -E 'circles' | \
|
||||
grep -oE '<strong.*strong>.*\(.*\)' | \
|
||||
sed 's/<strong>//g' | \
|
||||
sed 's/<\/strong>.*(/\t/g' | \
|
||||
sed 's/)//g'
|
||||
echo
|
||||
}
|
||||
|
||||
|
||||
|
@ -79,16 +79,27 @@ DEF_PGSQL="9.6"
|
||||
### Configure
|
||||
###
|
||||
print_h1 "Configuration: ${DVL_SRV1}-${DVL_VER1} vs ${DVL_SRV2}-${DVL_VER2}"
|
||||
|
||||
print_h2 "Enabled settings in .env"
|
||||
devilbox_configure "${DVL_SRV1}" "${DVL_VER1}" "${DVL_SRV2}" "${DVL_VER2}" "${DEF_PHP}" "${DEF_HTTPD}" "${DEF_MYSQL}" "${DEF_PGSQL}"
|
||||
devilbox_configured_settings
|
||||
|
||||
|
||||
|
||||
###
|
||||
### Download and run
|
||||
###
|
||||
print_h1 "Downloading and Run"
|
||||
print_h1 "Startup Devilbox"
|
||||
|
||||
print_h2 "Download"
|
||||
devilbox_pull
|
||||
|
||||
print_h2 "Run"
|
||||
devilbox_start
|
||||
devilbox_show
|
||||
|
||||
print_h2 "Actual settings from index.php"
|
||||
devilbox_print_actual_settings
|
||||
|
||||
|
||||
|
||||
###
|
||||
@ -115,6 +126,7 @@ if ! devilbox_test_url "http://localhost/index.php" "dvlbox-err" "0"; then
|
||||
fi
|
||||
|
||||
|
||||
|
||||
###
|
||||
### Stop
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user