From 506890b24d19c6d1d83fe4b0e0652632db03f999 Mon Sep 17 00:00:00 2001 From: Julian Fleischer Date: Fri, 3 Aug 2018 17:34:25 +0200 Subject: [PATCH] move remaining travis build steps into individual files --- .travis.yml | 4 ++-- .travis/lint_04_install.sh | 9 +++++++++ .travis/lint_05_before_script.sh | 9 +++++++++ .travis/lint_06_script.sh | 2 -- 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100755 .travis/lint_04_install.sh create mode 100755 .travis/lint_05_before_script.sh diff --git a/.travis.yml b/.travis.yml index de805bda2..8de437f6f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,9 +49,9 @@ jobs: language: python python: '3.6' install: - - travis_retry pip install flake8 + - source .travis/lint_04_install.sh before_script: - - git fetch --unshallow + - source .travis/lint_05_before_script.sh script: - source .travis/lint_06_script.sh # ARM diff --git a/.travis/lint_04_install.sh b/.travis/lint_04_install.sh new file mode 100755 index 000000000..34118a57c --- /dev/null +++ b/.travis/lint_04_install.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2018 The Bitcoin Core developers +# Distributed under the MIT software license, see the accompanying +# file COPYING or http://www.opensource.org/licenses/mit-license.php. + +export LC_ALL=C + +travis_retry pip install flake8 diff --git a/.travis/lint_05_before_script.sh b/.travis/lint_05_before_script.sh new file mode 100755 index 000000000..28bcbb47f --- /dev/null +++ b/.travis/lint_05_before_script.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2018 The Bitcoin Core developers +# Distributed under the MIT software license, see the accompanying +# file COPYING or http://www.opensource.org/licenses/mit-license.php. + +export LC_ALL=C + +git fetch --unshallow diff --git a/.travis/lint_06_script.sh b/.travis/lint_06_script.sh index 067ad6c32..6191d8257 100755 --- a/.travis/lint_06_script.sh +++ b/.travis/lint_06_script.sh @@ -3,8 +3,6 @@ # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. -# -# Check for new lines in diff that introduce trailing whitespace. export LC_ALL=C