aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Fleischer <tirednesscankill@warhog.net>2018-08-03 17:34:25 +0200
committerJulian Fleischer <tirednesscankill@warhog.net>2018-08-27 12:23:25 +0200
commit506890b24d19c6d1d83fe4b0e0652632db03f999 (patch)
treefb2c782696b2ac2ce240d87c3613629025bc4549
parent272306ea57116c0c9afc0f73161929be978fe9a8 (diff)
move remaining travis build steps into individual files
-rw-r--r--.travis.yml4
-rwxr-xr-x.travis/lint_04_install.sh9
-rwxr-xr-x.travis/lint_05_before_script.sh9
-rwxr-xr-x.travis/lint_06_script.sh2
4 files changed, 20 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index de805bda24..8de437f6fd 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 0000000000..34118a57c3
--- /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 0000000000..28bcbb47f7
--- /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 067ad6c32a..6191d82571 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