fixed build errors

This commit is contained in:
Mariotaku Lee 2017-04-26 01:40:56 +08:00
parent fb8beeda2d
commit cc80423466
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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