basicswap/.travis.yml

59 lines
1.8 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:
2021-01-10 18:30:07 +00:00
- TEST_PREPARE_PATH: ~/test_basicswap-prepare
- TEST_DIR=~/test_basicswap2
- TEST_RELOAD_PATH=~/test_basicswap1
- BIN_DIRS=~/cached_bin
- PARTICL_BINDIR=${BIN_DIRS}/particl
- BITCOIN_BINDIR=${BIN_DIRS}/bitcoin
- LITECOIN_BINDIR=${BIN_DIRS}/litecoin
- XMR_BINDIR=${BIN_DIRS}/monero
2019-10-04 18:23:33 +00:00
cache:
directories:
- "$BIN_DIRS"
2019-07-27 22:04:40 +00:00
before_install:
- sudo apt-get install -y wget python3-pip gnupg unzip protobuf-compiler automake libtool pkg-config
2021-01-10 18:30:07 +00:00
install:
- travis_retry pip install tox
2019-07-17 15:12:06 +00:00
before_script:
- wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/anonswap.zip
- unzip coincurve-anonswap.zip
- cd coincurve-anonswap
- python3 setup.py install --force
2019-07-17 15:12:06 +00:00
script:
- cd $TRAVIS_BUILD_DIR
2021-01-10 18:30:07 +00:00
- basicswap-prepare --bindir=${BIN_DIRS} --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"
- mkdir -p "${TEST_PREPARE_PATH}/bin"
- cp -r ${BIN_DIR} "${TEST_PREPARE_PATH}/bin"
- tox
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:
2021-01-10 18:30:07 +00:00
- PYTHONWARNINGS="ignore" flake8 --ignore=E501,F841,W503 --exclude=basicswap/contrib,messages_pb2.py,.eggs,.tox
- codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=tests/lint/spelling.ignore-words.txt -S .git,.eggs,.tox,gitianpubkeys,*.pyc,*basicswap/contrib,*mnemonics.py
2019-07-17 15:12:06 +00:00
after_success:
- echo "End lint"
2019-10-04 18:23:33 +00:00
- stage: test
env: