(trivial) travis: move flake8 tests to first stage

This commit is contained in:
SomberNight 2019-09-01 20:12:25 +02:00
parent 8404e07061
commit 3902d774f7
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -26,7 +26,7 @@ after_success:
- coveralls
jobs:
include:
- name: "Regtest"
- name: "Regtest functional tests"
before_install:
- sudo add-apt-repository -y ppa:bitcoin/bitcoin
- sudo apt-get -qq update
@ -40,8 +40,12 @@ jobs:
script:
- python -m unittest electrum/tests/regtest.py
after_success: True
- if: branch = master # don't build binaries on lightning branch
stage: binary builds
- name: "Flake8 linter tests"
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"
language: c
python: false
@ -54,7 +58,7 @@ jobs:
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
after_success: true
- if: branch = master # don't build binaries on lightning branch
- if: branch = master
name: "Android build"
language: python
python: 3.7
@ -76,7 +80,7 @@ jobs:
- ls -la bin
- if [ $(ls bin | grep -c Electrum-*) -eq 0 ]; then exit 1; fi
after_success: true
- if: branch = master # don't build binaries on lightning branch
- if: branch = master
name: "MacOS build"
os: osx
language: c
@ -88,7 +92,7 @@ jobs:
script: ./contrib/osx/make_osx
after_script: ls -lah dist && md5 dist/*
after_success: true
- if: branch = master # don't build binaries on lightning branch
- if: branch = master
name: "AppImage build"
language: c
python: false
@ -99,10 +103,6 @@ jobs:
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
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
install:
- git fetch --all --tags