1 Star 0 Fork 0

赵健/android-ndk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/WhatINeed/android-ndk.git
git@gitee.com:WhatINeed/android-ndk.git
WhatINeed
android-ndk
android-ndk
master

搜索帮助