-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (55 loc) · 1.58 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
language: java
jdk: oraclejdk8
sudo: false
# Skipping installation phase
install: true
#services:
#- docker
cache:
directories:
- "$HOME/.cache"
# Deployment to sonarcloud
addons:
sonarcloud:
organization: "dyga-entertainment"
token:
secure: $SONARCLOUD_TOKEN
before_deploy:
- mvn compile -P production # Generate target to push to bintray
deploy:
- provider: bintray
file: target/.bintray/core-bintray.json
user: graygzou
key: $BINTRAY_API_KEY
skip_cleanup: true # to upload artifacts created during the build
on:
repo: dyga-entertainment/dyga-engine # Trigger build if build occurs in this branch
tags: false # Only if $TRAVIS_TAG is not set
- provider: bintray
file: target/.bintray/ui-bintray.json
user: graygzou
key: $BINTRAY_API_KEY
skip_cleanup: true # to upload artifacts created during the build
on:
repo: dyga-entertainment/dyga-engine # Trigger build if build occurs in this branch
tags: false # Only if $TRAVIS_TAG is not set
# TODO LATER
# Automatic create release on github repo
#- provider: releases
# skip_cleanup: true
# api_key: $GITHUB_OAUTH_API_KEY
# file_glob: true
# file:
# - "target/*.jar"
# on:
# repo: dyga-entertainment/DygaEngine
# tags: true
after_success:
- mvn clean test jacoco:report coveralls:report -DrepoToken=$COVERALLS_TOKEN install sonar:sonar -Dsonar.projectKey=dyga-entertainment_dyga-engine
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
notifications:
email:
recipients:
on_success: change
on_failure: always