Browse Source

Fix circleci

tor-relay
nicolas.dorier 6 years ago
parent
commit
0cb3988500
No known key found for this signature in database GPG Key ID: 6618763EF09186FE
  1. 3
      .circleci/test-connectivity.sh
  2. 5
      .circleci/test-install.sh

3
.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

5
.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

Loading…
Cancel
Save