问题描述
我正在试图使用Travis-CI在Bintray上部署一个Android库。但是,当我上传我的回购...我得到了这个:
Ran lint在变体版本:找到6个问题
Ran lint对变体debug:发现6个问题
写HTML报告到文件:/// home / travis / build / leandroBorgesFerreira / MoreCLoseButton / app / build /outputs/lint-results-debug.html
将XML报告写入文件:///home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.xml
:app:lint FAILED
通常我会去我的项目放入并阅读lint-results-debug.html ...但我不知道如何在Travis中访问此文件。
所以,如何可以我访问Travis中的outputs / lint-results-debug.html ??欢迎任何帮助!
编辑
我的.travis.yml:
language:android
jdk:oraclejdk8
sudo:false
$ b addons:
apt:
packages:
- lynx
android:
组件:
- platform-tools
- tools
- build-tools-25.0.0
- android -25
- extra-android-m2repository
脚本:
- if [-f / home / travis / build / leandroBorgesFerreira / MoreCLoseButton / app / build / outputs / lint-results-debug。 html];然后lynx -dump /home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html; fi
- ./gradlew -PbintrayUser =$ {bintrayUser}-PbintrayKey =$ {bintrayKey}build
bintrayUpload --stacktrace --info
env:
global :
- secure:[...]
- secure:[...]
outputs / lint为了让Travis安装 lynx -dump
:-results-debug.html
。 在 .travis.yml
的顶部添加:
$ b
addons:
apt:
packages:
- lynx
使Travis使用 lynx
显示lint输出:在脚本
部分 .travis.yml
,添加:
$ b
after_failure :
- if [-f /home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html];然后lynx -dump /home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html; fi
I'm trying to deploy an Android library on Bintray using Travis-CI. But when I upload my repo... I got this:
Ran lint on variant release: 6 issues found
Ran lint on variant debug: 6 issues found
Wrote HTML report to file:///home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html
Wrote XML report to file:///home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.xml
:app:lint FAILED
Normally I would go to my project out put and read the lint-results-debug.html... But I don't know how to access this file in Travis.
So, How can I access outputs/lint-results-debug.html in Travis??
Any help is welcome!
Edit
my .travis.yml:
language: android
jdk: oraclejdk8
sudo: false
addons:
apt:
packages:
- lynx
android:
components:
- platform-tools
- tools
- build-tools-25.0.0
- android-25
- extra-android-m2repository
script:
- if [ -f /home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html ]; then lynx -dump /home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html; fi
- ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" build
bintrayUpload --stacktrace --info
env:
global:
- secure: [...]
- secure: [...]
You can use lynx -dump
to dump a plain-text rendering of outputs/lint-results-debug.html
.
To make Travis install lynx -dump
: To the top of your .travis.yml
, add this:
addons:
apt:
packages:
- lynx
To make Travis show the lint output using lynx
: In the script
part of your .travis.yml
, add:
after_failure:
- if [ -f /home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html ]; then lynx -dump /home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html; fi
这篇关于如何访问Travis中的输出文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!