代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。