mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-13 05:20:40 +02:00
Add circleci tests
This commit is contained in:
parent
acb7fdaf2d
commit
a428d06473
@ -1,5 +1,14 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
|
cansetup:
|
||||||
|
machine:
|
||||||
|
docker_layer_caching: true
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
command: |
|
||||||
|
cd .circleci
|
||||||
|
sudo test-install.sh
|
||||||
# Define in CircleCi Project Variables: $DOCKERHUB_REPO, $DOCKERHUB_USER, $DOCKERHUB_PASS
|
# Define in CircleCi Project Variables: $DOCKERHUB_REPO, $DOCKERHUB_USER, $DOCKERHUB_PASS
|
||||||
# Publish jobs require those variables
|
# Publish jobs require those variables
|
||||||
amd64:
|
amd64:
|
||||||
@ -63,6 +72,10 @@ workflows:
|
|||||||
version: 2
|
version: 2
|
||||||
publish:
|
publish:
|
||||||
jobs:
|
jobs:
|
||||||
|
- cansetup:
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only: master
|
||||||
- amd64:
|
- amd64:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
|
8
.circleci/test-connectivity.sh
Executable file
8
.circleci/test-connectivity.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
if curl -sL -w "%{http_code}\\n" "http://localhost/" -o /dev/null > /dev/null; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
20
.circleci/test-install.sh
Executable file
20
.circleci/test-install.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
export BTCPAY_HOST="btcpay.example.local"
|
||||||
|
export NBITCOIN_NETWORK="mainnet"
|
||||||
|
export BTCPAYGEN_CRYPTO1="btc"
|
||||||
|
export BTCPAYGEN_CRYPTO2="ltc"
|
||||||
|
export BTCPAYGEN_REVERSEPROXY="nginx"
|
||||||
|
export BTCPAYGEN_LIGHTNING="clightning"
|
||||||
|
source ./btcpay-setup.sh -i
|
||||||
|
|
||||||
|
timeout 10m bash test-connectivity.sh
|
||||||
|
|
||||||
|
# Testing scripts are not crashing and installed
|
||||||
|
btcpay-up.sh
|
||||||
|
btcpay-update.sh
|
||||||
|
btcpay-down.sh
|
Loading…
Reference in New Issue
Block a user