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