1 Star 0 Fork 0

Wang Jup/caffeine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
travis.sh 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -eu
run() {
echo $1
eval $1
}
runSlow() {
echo $1
eval $1 &
pid=$!
while kill -0 $pid 2>/dev/null
do
echo -ne .
sleep 1
done
}
case "${1:?''}" in
analysis)
run "./gradlew pmdJavaPoet pmdMain -Dpmd --console plain"
run "./gradlew spotbugsJavaPoet spotbugsMain spotbugsJmh -Dspotbugs --console plain"
run "sh -c 'cd examples/stats-metrics && ./gradlew test --console plain --no-daemon'"
run "sh -c 'cd examples/write-behind-rxjava && mvn test'"
run "sh -c 'cd examples/coalescing-bulkloader && mvn test'"
;;
tests)
run "./gradlew check --console plain"
runSlow "./gradlew :caffeine:slowCaffeineTest --console plain"
runSlow "./gradlew :caffeine:slowGuavaTest --console plain"
if [[ (${CI:-false} == "true") && (${TRAVIS_PULL_REQUEST:-false} == "false") ]]; then
run "./gradlew coveralls publish --console plain"
runSlow "./gradlew sonarqube --console plain"
fi
;;
*)
echo $"Usage: $0 {analysis|tests}"
exit 1
esac
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anjup/caffeine.git
git@gitee.com:anjup/caffeine.git
anjup
caffeine
caffeine
master

搜索帮助