mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-19 15:14:26 +01:00
Further updates circle-ci
This commit is contained in:
@@ -21,15 +21,14 @@ jobs:
|
|||||||
# Download and cache dependencies
|
# Download and cache dependencies
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v3-dependencies-{{ checksum "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}
|
- v5-dependencies-{{ checksum "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}-{{ checksum "test/pisa/e2e/bitcoind_snap.sh" }}
|
||||||
# fallback to using the latest cache if no exact match is found
|
# fallback to using the latest cache if no exact match is found
|
||||||
- v3-dependencies-
|
- v5-dependencies-
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
sudo apt-get install snapd
|
sudo snap install `cat test/pisa/e2e/bitcoind_snap.sh`
|
||||||
sudo snap install bitcoin-core
|
|
||||||
pyenv local 3.7.0
|
pyenv local 3.7.0
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
@@ -41,7 +40,8 @@ jobs:
|
|||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ./venv
|
- ./venv
|
||||||
key: v3-dependencies-{{ checksum "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}
|
- /snap
|
||||||
|
key: v5-dependencies-{{ checksum "pisa/requirements.txt" }}-{{ checksum "pisa/requirements-dev.txt" }}-{{ checksum "apps/cli/requirements-dev.txt" }}-{{ checksum "test/pisa/e2e/bitcoind_snap.sh" }}
|
||||||
|
|
||||||
# Run unit tests
|
# Run unit tests
|
||||||
- run:
|
- run:
|
||||||
@@ -71,7 +71,10 @@ jobs:
|
|||||||
# Run bitcoind for E2E testing
|
# Run bitcoind for E2E testing
|
||||||
- run:
|
- run:
|
||||||
name: Run bitcoind
|
name: Run bitcoind
|
||||||
command: bitcoin-core.daemon -conf=test/pisa/e2e/bitcoin.conf
|
command: |
|
||||||
|
mkdir -p /home/circleci/snap/bitcoin-core/common/.bitcoin/
|
||||||
|
cp test/pisa/e2e/bitcoin.conf /home/circleci/snap/bitcoin-core/common/.bitcoin/
|
||||||
|
/snap/bin/bitcoin-core.daemon
|
||||||
|
|
||||||
# Setup pisa for E2E testing
|
# Setup pisa for E2E testing
|
||||||
- run:
|
- run:
|
||||||
|
|||||||
1
test/pisa/e2e/bitcoind_snap.sh
Normal file
1
test/pisa/e2e/bitcoind_snap.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
bitcoin-core --channel=0.19/stable
|
||||||
Reference in New Issue
Block a user