basicswap/.travis.yml

47 lines
2 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
env:
global:
2019-08-01 16:21:23 +00:00
- TEST_DIR=~/test_basicswap2/
- PARTICL_BINDIR=/opt/binaries/particl-0.18.1.5/bin/
2019-08-23 20:07:50 +00:00
- BITCOIN_BINDIR=/opt/binaries/bitcoin-0.18.1/bin/
2019-07-17 15:12:06 +00:00
- LITECOIN_BINDIR=/opt/binaries/litecoin-0.17.1/bin/
2019-07-27 22:04:40 +00:00
before_install:
- sudo apt-get install -y wget gnupg2
2019-07-17 15:12:06 +00:00
before_script:
- if [ ! -d "/opt/binaries" ]; then mkdir -p "/opt/binaries" ; fi
2019-08-23 20:07:50 +00:00
- if [ ! -d "$BITCOIN_BINDIR" ]; then cd "/opt/binaries" && wget https://bitcoincore.org/bin/bitcoin-core-0.18.1/bitcoin-0.18.1-x86_64-linux-gnu.tar.gz && tar xvf bitcoin-0.18.1-x86_64-linux-gnu.tar.gz ; fi
2019-07-17 15:12:06 +00:00
- if [ ! -d "$LITECOIN_BINDIR" ]; then cd "/opt/binaries" && wget https://download.litecoin.org/litecoin-0.17.1/linux/litecoin-0.17.1-x86_64-linux-gnu.tar.gz && tar xvf litecoin-0.17.1-x86_64-linux-gnu.tar.gz ; fi
- if [ ! -d "$PARTICL_BINDIR" ]; then cd "/opt/binaries" && wget https://github.com/particl/particl-core/releases/download/v0.18.1.5/particl-0.18.1.5-x86_64-linux-gnu_nousb.tar.gz && tar xvf particl-0.18.1.5-x86_64-linux-gnu_nousb.tar.gz ; fi
2019-07-17 15:12:06 +00:00
script:
- cd $TRAVIS_BUILD_DIR
- export PARTICL_BINDIR=/opt/binaries/particl-0.18.1.5/bin/
2019-08-23 20:07:50 +00:00
- export BITCOIN_BINDIR=/opt/binaries/bitcoin-0.18.1/bin/
2019-07-17 15:12:06 +00:00
- export LITECOIN_BINDIR=/opt/binaries/litecoin-0.17.1/bin/
2019-08-01 16:21:23 +00:00
- export DATADIRS=~/test_basicswap2/
- mkdir -p ${DATADIRS}/bin/{particl,bitcoin}
2019-08-23 20:07:50 +00:00
- cp /opt/binaries/bitcoin-0.18.1-x86_64-linux-gnu.tar.gz ${DATADIRS}/bin/bitcoin
2019-07-17 15:12:06 +00:00
- python setup.py test
after_success:
- echo "End test"
jobs:
include:
- stage: lint
env:
cache: false
language: python
2019-07-28 12:45:26 +00:00
python: '3.7'
2019-07-17 15:12:06 +00:00
install:
- travis_retry pip install flake8==3.5.0
- travis_retry pip install codespell==1.15.0
before_script:
script:
2019-10-02 20:34:03 +00:00
- PYTHONWARNINGS="ignore" flake8 --ignore=E501,F841,W503 --exclude=segwit_addr.py,key.py,messages_pb2.py,.eggs
- codespell --check-filenames --disable-colors --quiet-level=7 -S .git,.eggs,gitianpubkeys
2019-07-17 15:12:06 +00:00
after_success:
- echo "End lint"