forked from damianszczepanik/cucumber-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·66 lines (55 loc) · 1.54 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
62
63
64
65
66
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="
before_install:
# Workaround for issue http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7089443
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
# Needed to publish sample report on github pages successfully
- gem install public_suffix -v 3.0.3
addons:
hosts:
- myshorthost
hostname: myshorthost
matrix:
include:
- jdk: oraclejdk8
env:
- DESC="tests"
script:
- mvn clean verify
- jdk: oraclejdk8
env:
- DESC="static analysis"
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)
before_deploy:
- cat /dev/null > .gitignore
- touch .gitignore
deploy:
provider: pages
repo: damianszczepanik/damianszczepanik.github.io
target_branch: master
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: target/demo/
verbose: true
on:
branch: master
addons:
sonarcloud:
token:
secure: $SONAR_TOKEN
branches:
- master