1 Star 0 Fork 0

吴福增/incubator-weex

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.41 KB
一键复制 编辑 原始数据 按行查看 历史
YorkShen 提交于 2019-07-01 11:29 . Update TravisCI for android NDK (#2319)
language: node_js
node_js: 7.6
rvm: 2.0.0
matrix:
fast_finish: true
include:
- os: linux
env: TEST_SUITE=android
jdk: oraclejdk8
language: android
dist: trusty
android:
components:
- platform-tools
- tools
- build-tools-26.0.3
- android-26
- extra-google-m2repository
- extra-android-m2repository
- sys-img-x86-android-26
- os: linux
env: TEST_SUITE=jsfm
- os: osx
env: TEST_SUITE=danger
cache:
directories:
- npm
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
- $HOME/android-ndk-r18b
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
install:
- |
if [[ $TEST_SUITE = "android" ]]; then
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
nvm install 7.0
npm install
echo y | sdkmanager "cmake;3.6.4111459"
if find "${HOME}/android-ndk-r18b" -mindepth 1 | read; then
echo "dir not empty"
else
echo "dir empty"
rmdir "${HOME}/android-ndk-r18b"
fi
if [[ ! -d "${HOME}/android-ndk-r18b" ]]; then
wget https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip
unzip android-ndk-r18b-linux-x86_64.zip -d $HOME
fi
export ANDROID_NDK_HOME=$HOME/android-ndk-r18b
export PATH=$PATH:$ANDROID_NDK_HOME
echo "ndk.dir=$ANDROID_NDK_HOME" > android/local.properties
fi
- |
if [[ $TEST_SUITE = "jsfm" ]]; then
npm install
fi
- |
if [[ $TEST_SUITE = "danger" ]]; then
npm install
fi
script:
- |
if [[ $TEST_SUITE = "android" ]]; then
npm run danger -- run --dangerfile ./dangerfile-android.js
fi
- |
if [[ $TEST_SUITE = "jsfm" ]]; then
npm run danger -- run --dangerfile ./dangerfile-jsfm.js
fi
- |
if [[ $TEST_SUITE = "danger" ]]; then
npm run danger -- run --dangerfile ./dangerfile.js
fi
notifications:
webhooks:
on_pull_requests: false
urls:
- https://oapi.dingtalk.com/robot/send?access_token=5a6be5eb6ad180fa4d04bdda0b24857ee49c3dd985361efdf0964aa9134ee623
on_success: never
on_failure: always
email:
recipients:
- weexnotify@gmail.com
on_success: never
on_failure: always
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wufuzeng/incubator-weex.git
git@gitee.com:wufuzeng/incubator-weex.git
wufuzeng
incubator-weex
incubator-weex
master

搜索帮助