basicswap/.travis.yml

61 lines
2.1 KiB
YAML
Raw Normal View History

2019-07-27 22:04:40 +00:00
dist: bionic
2019-07-17 15:12:06 +00:00
os: linux
language: python
python: '3.7'
2019-07-17 15:12:06 +00:00
stages:
- lint
2019-10-04 18:23:33 +00:00
- test
2019-07-17 15:12:06 +00:00
env:
2019-10-04 18:23:33 +00:00
global:
- TEST_DIR=${HOME}/test_basicswap2
2021-01-10 18:30:07 +00:00
- TEST_RELOAD_PATH=~/test_basicswap1
- BIN_DIR=~/cached_bin
- PARTICL_BINDIR=${BIN_DIR}/particl
- BITCOIN_BINDIR=${BIN_DIR}/bitcoin
- LITECOIN_BINDIR=${BIN_DIR}/litecoin
- XMR_BINDIR=${BIN_DIR}/monero
2019-10-04 18:23:33 +00:00
cache:
directories:
- "$BIN_DIR"
2019-07-27 22:04:40 +00:00
before_install:
2024-05-29 07:20:20 +00:00
- sudo apt-get install -y wget python3-pip gnupg unzip automake libtool pkg-config
2021-01-10 18:30:07 +00:00
install:
- travis_retry pip install tox pytest
2019-07-17 15:12:06 +00:00
before_script:
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
- cd coincurve-anonswap
- python3 setup.py install --force
2019-07-17 15:12:06 +00:00
script:
- cd $TRAVIS_BUILD_DIR
- python3 setup.py install
- basicswap-prepare --bindir=${BIN_DIR} --preparebinonly --withcoins=particl,bitcoin,litecoin,monero
2019-10-04 18:23:33 +00:00
- 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"
- # tox
- pytest tests/basicswap/test_xmr.py
- pytest tests/basicswap/test_xmr_reload.py
- pytest tests/basicswap/test_xmr_bids_offline.py
2019-07-17 15:12:06 +00:00
after_success:
- echo "End test"
jobs:
include:
- stage: lint
env:
cache: false
install:
- travis_retry pip install flake8==3.7.0
2019-07-17 15:12:06 +00:00
- travis_retry pip install codespell==1.15.0
before_script:
script:
- 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
2019-07-17 15:12:06 +00:00
after_success:
- echo "End lint"
2019-10-04 18:23:33 +00:00
- stage: test
env: