mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
(trivial) travis: move flake8 tests to first stage
This commit is contained in:
parent
8404e07061
commit
3902d774f7
1 changed files with 10 additions and 10 deletions
20
.travis.yml
20
.travis.yml
|
@ -26,7 +26,7 @@ after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: "Regtest"
|
- name: "Regtest functional tests"
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository -y ppa:bitcoin/bitcoin
|
- sudo add-apt-repository -y ppa:bitcoin/bitcoin
|
||||||
- sudo apt-get -qq update
|
- sudo apt-get -qq update
|
||||||
|
@ -40,8 +40,12 @@ jobs:
|
||||||
script:
|
script:
|
||||||
- python -m unittest electrum/tests/regtest.py
|
- python -m unittest electrum/tests/regtest.py
|
||||||
after_success: True
|
after_success: True
|
||||||
- if: branch = master # don't build binaries on lightning branch
|
- name: "Flake8 linter tests"
|
||||||
stage: binary builds
|
language: python
|
||||||
|
install: pip install flake8
|
||||||
|
script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
|
- stage: binary builds
|
||||||
|
if: branch = master
|
||||||
name: "Windows build"
|
name: "Windows build"
|
||||||
language: c
|
language: c
|
||||||
python: false
|
python: false
|
||||||
|
@ -54,7 +58,7 @@ jobs:
|
||||||
script:
|
script:
|
||||||
- sudo docker run --name electrum-wine-builder-cont -v $PWD:/opt/wine64/drive_c/electrum --rm --workdir /opt/wine64/drive_c/electrum/contrib/build-wine electrum-wine-builder-img ./build.sh
|
- sudo docker run --name electrum-wine-builder-cont -v $PWD:/opt/wine64/drive_c/electrum --rm --workdir /opt/wine64/drive_c/electrum/contrib/build-wine electrum-wine-builder-img ./build.sh
|
||||||
after_success: true
|
after_success: true
|
||||||
- if: branch = master # don't build binaries on lightning branch
|
- if: branch = master
|
||||||
name: "Android build"
|
name: "Android build"
|
||||||
language: python
|
language: python
|
||||||
python: 3.7
|
python: 3.7
|
||||||
|
@ -76,7 +80,7 @@ jobs:
|
||||||
- ls -la bin
|
- ls -la bin
|
||||||
- if [ $(ls bin | grep -c Electrum-*) -eq 0 ]; then exit 1; fi
|
- if [ $(ls bin | grep -c Electrum-*) -eq 0 ]; then exit 1; fi
|
||||||
after_success: true
|
after_success: true
|
||||||
- if: branch = master # don't build binaries on lightning branch
|
- if: branch = master
|
||||||
name: "MacOS build"
|
name: "MacOS build"
|
||||||
os: osx
|
os: osx
|
||||||
language: c
|
language: c
|
||||||
|
@ -88,7 +92,7 @@ jobs:
|
||||||
script: ./contrib/osx/make_osx
|
script: ./contrib/osx/make_osx
|
||||||
after_script: ls -lah dist && md5 dist/*
|
after_script: ls -lah dist && md5 dist/*
|
||||||
after_success: true
|
after_success: true
|
||||||
- if: branch = master # don't build binaries on lightning branch
|
- if: branch = master
|
||||||
name: "AppImage build"
|
name: "AppImage build"
|
||||||
language: c
|
language: c
|
||||||
python: false
|
python: false
|
||||||
|
@ -99,10 +103,6 @@ jobs:
|
||||||
script:
|
script:
|
||||||
- sudo docker run --name electrum-appimage-builder-cont -v $PWD:/opt/electrum --rm --workdir /opt/electrum/contrib/build-linux/appimage electrum-appimage-builder-img ./build.sh
|
- sudo docker run --name electrum-appimage-builder-cont -v $PWD:/opt/electrum --rm --workdir /opt/electrum/contrib/build-linux/appimage electrum-appimage-builder-img ./build.sh
|
||||||
after_success: true
|
after_success: true
|
||||||
- name: "Flake8 tests"
|
|
||||||
language: python
|
|
||||||
install: pip install flake8
|
|
||||||
script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
||||||
- stage: release check
|
- stage: release check
|
||||||
install:
|
install:
|
||||||
- git fetch --all --tags
|
- git fetch --all --tags
|
||||||
|
|
Loading…
Add table
Reference in a new issue