From cc8042346699b6140403967e9e09f92c1ae05104 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 26 Apr 2017 01:40:56 +0800 Subject: [PATCH] fixed build errors --- .travis.yml | 2 +- travis/scripts/patch_sources.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 travis/scripts/patch_sources.sh diff --git a/.travis.yml b/.travis.yml index b38b2d68f..b91bedc1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,7 +54,7 @@ install: before_script: # Validate if patches work - - patch --dry-run -d twidere < twidere/patches/remove_closed_source_dependencies.patch + - ./travis/scripts/patch_sources.sh # Validate if Google components fetched successfully - ./travis/scripts/test_private_files.sh diff --git a/travis/scripts/patch_sources.sh b/travis/scripts/patch_sources.sh new file mode 100755 index 000000000..87a96a95e --- /dev/null +++ b/travis/scripts/patch_sources.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + patch --dry-run -d twidere < twidere/patches/remove_closed_source_dependencies.patch +else + patch -d twidere < twidere/patches/remove_closed_source_dependencies.patch +fi \ No newline at end of file