代码拉取完成,页面将自动刷新
language: android
sudo: true
android:
components:
- tools
- platform-tools
- build-tools-23.0.2
- android-23
- extra-google-m2repository
- extra-android-m2repository
addons:
apt_packages:
- pandoc
artifacts:
paths:
- $(git ls-files -o | grep app/build/outputs | tr "\n" ":")
before_install:
- git clone https://github.com/urho3d/android-ndk.git $HOME/android-ndk-root
- export ANDROID_NDK_HOME=$HOME/android-ndk-root
script:
# check that all Support section of the README are the same.
- for f in */README.md; do sed -n '/Support/,/License/p' $f > /tmp/$(dirname $f).readme; done && diff -u --from-file=/tmp/hello-jni.readme /tmp/*.readme
# check that all compileSdkVersion are 23.
- test "$(grep -H compileSdkVersion */app/build.gradle | tee /dev/stderr | cut -d= -f 2 | xargs -n1 echo | sort | uniq | wc -l)" = "1"
# check that all targetSdkVersion are 22 or 23
- test "$(grep -H targetSdkVersion */app/build.gradle | tee /dev/stderr | cut -d= -f 2 | xargs -n1 echo | sort | uniq | wc -l)" = "2"
# check that all build-tools-23 are 23.
- test "$(grep -H buildToolsVersion */app/build.gradle | tee /dev/stderr | cut -d= -f 2 | xargs -n1 echo | sort | uniq | wc -l)" = "1"
# check that there is no tabs in AndroidManifest
- |-
(! grep -n $'\t' */app/src/main/AndroidManifest.xml) | cat -t; test ${PIPESTATUS[0]} -eq 0
# check that there is no trailing spaces in AndroidManifest
- |-
(! grep -E '\s+$' */app/src/main/AndroidManifest.xml) | cat -e; test ${PIPESTATUS[0]} -eq 0
- (cd builder && ./gradlew test)
# print build failure summary
- pandoc builder/build/reports/tests/index.html -t plain | sed -n '/^Failed tests/,/default-package/p'
# print lint results details
# - for f in */app/build/outputs/lint-results.html; do pandoc $f -t plain; done
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。