加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.travis.yml 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
language: java
# to make the build work with oraclejdk8: https://travis-ci.community/t/solved-oraclejdk8-installation-failing-still-again/3428
dist: trusty
sudo: false # Linux OS: run in container
env:
global:
# get all the branches referencing this commit
- TAG_BRANCH=$(git ls-remote origin | sed -n "\|$TRAVIS_COMMIT\s\+refs/heads/|{s///p}")
# Necessary environment variables on Travis CI:
#
# GITHUB_TOKEN: Token from here: https://github.com/settings/tokens => with scope "public_repo"
# BINTRAY_USER: Bintray username
# BINTRAY_API_KEY: API key from here: https://bintray.com/profile/edit => API Key
#
# The Bintray URL follows the following pattern: https://bintray.com/subject/repo/package
# BINTRAY_SUBJECT=subject
# BINTRAY_REPO=repo
# BINTRAY_PACKAGE=package
jdk: oraclejdk8
addons:
apt:
packages:
- p7zip-full
before_install:
- if [[ "${TRAVIS_OS_NAME}" == linux ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi
install: true
cache:
directories:
- $HOME/.m2
script: mvn test -B
after_success:
- chmod +x .github/deploy_prepare.sh
- chmod +x .github/deploy_bintray_central.sh
deploy:
- provider: script
script: .github/deploy_prepare.sh
skip_cleanup: true
on: &on
repo: $TRAVIS_REPO_SLUG
tags: true
all_branches: true
condition: $TAG_BRANCH =~ ^(master|master-11)$
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file:
- javadoc.zip
- /**/target/*.jar
skip_cleanup: true
name: Release $TRAVIS_TAG
body: See [CHANGELOG.md](https://github.com/$TRAVIS_REPO_SLUG/blob/$TAG_BRANCH/CHANGELOG.md)
on: *on
- provider: script
script: .github/deploy_bintray_central.sh
skip_cleanup: true
on: *on
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化