mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-09 00:08:41 +01:00
tweaking travis config
This commit is contained in:
parent
1cc96d2a43
commit
7435d3e58b
13
.travis.yml
13
.travis.yml
@ -1,8 +1,6 @@
|
|||||||
language: android
|
language: android
|
||||||
|
|
||||||
dist: trusty
|
sudo: false
|
||||||
|
|
||||||
sudo: required
|
|
||||||
|
|
||||||
android:
|
android:
|
||||||
components:
|
components:
|
||||||
@ -35,8 +33,6 @@ addons:
|
|||||||
- patch
|
- patch
|
||||||
- openssh-client
|
- openssh-client
|
||||||
- git
|
- git
|
||||||
- oracle-java8-installer
|
|
||||||
- oracle-java8-set-default
|
|
||||||
|
|
||||||
before_cache:
|
before_cache:
|
||||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||||
@ -62,16 +58,13 @@ install:
|
|||||||
# Append known_hosts
|
# Append known_hosts
|
||||||
- cat private/ssh_known_hosts >> ~/.ssh/known_hosts
|
- cat private/ssh_known_hosts >> ~/.ssh/known_hosts
|
||||||
# Checkout Google components
|
# Checkout Google components
|
||||||
- ssh-agent bash -c "ssh-add private/ssh_id_rsa; git clone $COMPONENT_GOOGLE_REPO twidere/src/google" > /dev/null 2>&1
|
# - ssh-agent bash -c "ssh-add private/ssh_id_rsa; git clone $COMPONENT_GOOGLE_REPO twidere/src/google" > /dev/null 2>&1
|
||||||
# Remove Google components .git dir
|
|
||||||
- rm -rf twidere/src/google/.git
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# Validate if patches work
|
# Validate if patches work
|
||||||
- patch --dry-run -d twidere < twidere/patches/remove_closed_source_dependencies.patch
|
- patch --dry-run -d twidere < twidere/patches/remove_closed_source_dependencies.patch
|
||||||
# Validate if Google components fetched successfully
|
# Validate if Google components fetched successfully
|
||||||
- test -f twidere/src/google/AndroidManifest.xml
|
# - test -f twidere/src/google/AndroidManifest.xml
|
||||||
- free
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./gradlew clean build
|
- ./gradlew clean build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user