diff --git a/.circleci/test-connectivity.sh b/.circleci/test-connectivity.sh index a762ac9..b0a007a 100755 --- a/.circleci/test-connectivity.sh +++ b/.circleci/test-connectivity.sh @@ -1,7 +1,8 @@ #!/bin/bash while true; do - if curl -sL -w "%{http_code}\\n" "http://localhost/" -o /dev/null > /dev/null; then + if [ "$(curl -sL -w "%{http_code}\\n" "http://localhost/" -o /dev/null)" == "200" ]; then + echo "Successfully contacted BTCPayServer" break fi sleep 1 diff --git a/.circleci/test-install.sh b/.circleci/test-install.sh index 0f7caa6..bc16b26 100755 --- a/.circleci/test-install.sh +++ b/.circleci/test-install.sh @@ -4,7 +4,8 @@ set -e cd .. -export BTCPAY_HOST="btcpay.example.local" +export BTCPAY_HOST="btcpay.local" +export REVERSEPROXY_DEFAULT_HOST="btcpay.local" export NBITCOIN_NETWORK="mainnet" export BTCPAYGEN_CRYPTO1="btc" export BTCPAYGEN_CRYPTO2="ltc" @@ -12,7 +13,7 @@ export BTCPAYGEN_REVERSEPROXY="nginx" export BTCPAYGEN_LIGHTNING="clightning" source ./btcpay-setup.sh -i -timeout 10m bash test-connectivity.sh +timeout 10m bash .circleci/test-connectivity.sh # Testing scripts are not crashing and installed btcpay-up.sh