加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
Wendal 提交于 2018-01-05 15:50 . change: CI改成用deploy规则
sudo: false
language: java
script: mvn clean source:jar cobertura:cobertura package
jdk:
- oraclejdk8
# whitelist
branches:
only:
- master
- coverity_scan
before_script:
- psql -c 'create database nutztest;' -U postgres
- cp ./tools/travis-ci/nutz-test.properties ./test/
- cp ./tools/travis-ci/log4j.properties ./test/
notifications:
email: false
before_install:
- export TZ=Asia/Shanghai
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "E1z+6z9M4iTdAXZ2a1rYSrxfIOq6PkdXEMutAbIn/bp1e/Qvb5IVoAS0heo7SPwcIlHlN8mDiOtKdzbcu9q8VaftfHwFjff6AoKyuWtfDqE1ecTfflebWwzmtXKJmT5uxBPvu442dS4sIc2zx3zjvnxMsSmvrdSwbMxwdbAKvDc="
- SONATYPE_USERNAME=wendal
- secure : "BaXmGpodQiuU23YgtUThWCHf7Vig2Gv3UfpBjo3FATgn1LRF3i2IOgY5sCSi+XJYqx+05fVNdwVYccxS/9UfhPNSqQuslIwgmg0y9f26DYaX2gaW+jk8padhZRkeBrY3fO+g9nQuu+Epgqi0ITru6+IjH932O0m1JR7iJu2RNhs="
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: script
script: "mvn -Dmaven.test.skip=true clean compile source:jar javadoc:jar deploy --settings mvn_settings.xml"
skip_cleanup: true
on:
tags: false
branch: master
addons:
postgresql: "9.3"
coverity_scan:
project:
name: "nutzam/nutz"
notification_email: wendal1985@gmail.com
build_command_prepend: "mvn clean"
build_command: "mvn -DskipTests=true compile"
branch_pattern: coverity_scan
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化