This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
forked from xuanzhaopeng/cucumber-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·61 lines (50 loc) · 1.73 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: java
dist: precise
cache:
directories:
- ~/.m2
- ~/.sonar/cache
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: "erPk0ACAA2A4i+ik4RKhLS6xAWRqC03KuaQ8dD91Oy8fsIRJdTu7w+woATRW2rESak6qHsp0aZvzEz9WaIrxFxpn/8DEPPgXQK/Hz3bm+zySTwELy0HCEO+ATEbdGMjpSoGlDRUS3eu0zBGOfZHI7Jp3LQYiycZO7PIzaxWo2UI="
# Workaround for issue http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7089443
# See https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165131913
addons:
hosts:
- myshorthost
hostname: myshorthost
matrix:
include:
- jdk: oraclejdk7
script: mvn clean test
- jdk: openjdk7
# use 'verify' phrase to execute integration tests
script: mvn clean verify
- jdk: oraclejdk8
script: mvn clean verify
- jdk: oraclejdk8
script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
after_success:
# push report to codecov server
bash <(curl -s https://codecov.io/bash)
addons:
coverity_scan:
project:
name: "damianszczepanik/cucumber-reporting"
description: "Build submitted via Travis CI"
# Where email notification of build analysis results will be sent
notification_email: [email protected]
# Commands to prepare for build_command
build_command_prepend: "mvn clean"
# The command that will be added as an argument to "cov-build" to compile your project for analysis,
build_command: "mvn -DskipTests=true compile"
# Pattern to match selecting branches that will run analysis.
branch_pattern: master
sonarqube:
token:
secure: $SONAR_TOKEN
branches:
- master