2020-09-11 15:49:39 +00:00
|
|
|
container:
|
|
|
|
image: python
|
|
|
|
|
|
|
|
lint_task:
|
|
|
|
setup_script:
|
|
|
|
- pip install flake8
|
|
|
|
- pip install codespell
|
|
|
|
script:
|
2020-12-06 17:34:56 +00:00
|
|
|
- flake8 --version
|
2022-08-10 22:02:36 +00:00
|
|
|
- PYTHONWARNINGS="ignore" flake8 --ignore=E501,F841,W503 --exclude=basicswap/contrib,basicswap/interface/contrib,messages_pb2.py,.eggs,.tox,bin/install_certifi.py
|
2022-10-11 05:55:35 +00:00
|
|
|
- codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=tests/lint/spelling.ignore-words.txt -S .git,.eggs,.tox,pgp,*.pyc,*basicswap/contrib,*basicswap/interface/contrib,*mnemonics.py,bin/install_certifi.py,*basicswap/static
|
2020-09-11 15:49:39 +00:00
|
|
|
|
|
|
|
test_task:
|
|
|
|
environment:
|
2021-01-10 18:30:07 +00:00
|
|
|
- TEST_RELOAD_PATH: $HOME/test_basicswap1
|
|
|
|
- TEST_DIR: $HOME/test_basicswap2
|
|
|
|
- BIN_DIR: /tmp/cached_bin
|
|
|
|
- PARTICL_BINDIR: ${BIN_DIR}/particl
|
|
|
|
- BITCOIN_BINDIR: ${BIN_DIR}/bitcoin
|
|
|
|
- LITECOIN_BINDIR: ${BIN_DIR}/litecoin
|
|
|
|
- XMR_BINDIR: ${BIN_DIR}/monero
|
2020-09-11 15:49:39 +00:00
|
|
|
setup_script:
|
2020-12-06 17:34:56 +00:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y wget python3-pip gnupg unzip protobuf-compiler automake libtool pkg-config
|
2021-02-04 22:42:15 +00:00
|
|
|
- pip install tox pytest
|
2021-01-10 18:30:07 +00:00
|
|
|
- python3 setup.py install
|
2023-12-14 18:29:32 +00:00
|
|
|
- wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/refs/tags/anonswap_v0.2.zip
|
2022-06-29 12:17:57 +00:00
|
|
|
- unzip -d coincurve-anonswap coincurve-anonswap.zip
|
|
|
|
- mv ./coincurve-anonswap/*/{.,}* ./coincurve-anonswap || true
|
2020-12-05 11:22:22 +00:00
|
|
|
- cd coincurve-anonswap
|
|
|
|
- python3 setup.py install --force
|
2021-01-10 18:30:07 +00:00
|
|
|
bins_cache:
|
|
|
|
folder: /tmp/cached_bin
|
|
|
|
reupload_on_changes: false
|
|
|
|
fingerprint_script:
|
|
|
|
- basicswap-prepare -v
|
|
|
|
populate_script:
|
|
|
|
- basicswap-prepare --bindir=/tmp/cached_bin --preparebinonly --withcoins=particl,bitcoin,litecoin,monero
|
2020-09-11 15:49:39 +00:00
|
|
|
script:
|
|
|
|
- cd "${CIRRUS_WORKING_DIR}"
|
|
|
|
- export DATADIRS="${TEST_DIR}"
|
2021-01-10 18:30:07 +00:00
|
|
|
- mkdir -p "${DATADIRS}/bin"
|
|
|
|
- cp -r ${BIN_DIR} "${DATADIRS}/bin"
|
|
|
|
- mkdir -p "${TEST_RELOAD_PATH}/bin"
|
|
|
|
- cp -r ${BIN_DIR} "${TEST_RELOAD_PATH}/bin"
|
2021-02-04 22:42:15 +00:00
|
|
|
- # tox
|
|
|
|
- pytest tests/basicswap/test_other.py
|
|
|
|
- pytest tests/basicswap/test_run.py
|
|
|
|
- pytest tests/basicswap/test_reload.py
|