mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
#1175 reformat travis file
This commit is contained in:
parent
4887ec435d
commit
0d47467911
20
.travis.yml
20
.travis.yml
@ -17,18 +17,22 @@ before_install:
|
||||
install:
|
||||
- pip install --user 'requests[security]'
|
||||
- wget -r -nH -nd -np -R index.html* robots.txt* http://download.kiwix.org/dev/android/api/licenses/ -e robots=off -P $ANDROID_HOME/licenses || true
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- lynx
|
||||
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- "$HOME/.gradle/caches/"
|
||||
- "$HOME/.gradle/wrapper/"
|
||||
- "$HOME/.android/build-cache"
|
||||
|
||||
android:
|
||||
components:
|
||||
- tools
|
||||
@ -36,17 +40,23 @@ android:
|
||||
- build-tools-28.0.3
|
||||
- android-27
|
||||
- extra-android-m2repository
|
||||
|
||||
licenses:
|
||||
- ".+"
|
||||
|
||||
script:
|
||||
- "./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport assembleKiwixRelease"
|
||||
- if [$TRAVIS_PULL_REQUEST == “false” ] && [ $TRAVIS_BRANCH == “release” ]; then ./gradlew publishKiwixRelease;
|
||||
- ./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport assembleKiwixRelease
|
||||
- if [$TRAVIS_PULL_REQUEST == “false” ] && [ $TRAVIS_BRANCH == “release” ]; then
|
||||
./gradlew publishKiwixRelease;
|
||||
fi
|
||||
- if [$TRAVIS_TAG != “” ] && [$TRAVIS_PULL_REQUEST == “false” ] && [ $TRAVIS_BRANCH
|
||||
== “master” ]; then ./gradlew publishKiwixRelease; fi
|
||||
- if [$TRAVIS_TAG != “” ] && [$TRAVIS_PULL_REQUEST == “false” ] && [ $TRAVIS_BRANCH == “master” ]; then
|
||||
./gradlew publishKiwixRelease;
|
||||
fi
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
- "./gradlew testdroidUploadKiwixDebug"
|
||||
- ./gradlew testdroidUploadKiwixDebug
|
||||
|
||||
after_failure:
|
||||
- export LOG_DIR = ${TRAVIS_HOME}/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX/
|
||||
- lynx --dump ${LOG_DIR}com.android.builder.testing.ConnectedDevice.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user