This repository has been archived by the owner on Aug 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
113 lines (107 loc) · 4.88 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# +++++++++++++++++++++++++++++++++++++++++++
# title Travis CI Build Configuration +
# project northem-light-java +
# file .travis.yml +
# version 0.2.0 +
# author Arctic Ice Studio +
# email development@arcticicestudio.com +
# copyright Copyright (C) 2016 +
# created 2016-08-04 14:39 UTC+0200 +
# modified 2016-08-04 14:40 UTC+0200 +
# +++++++++++++++++++++++++++++++++++++++++++
#
# [Description]
# Configures the Travis CI build based on the skeleton file
# of the "glacier-apache-maven@0.4.0" project.
#
# [Index]
# (1) Environment
# (1.0) Language
# (1.1) JDK
# (1.2) Permissions
# (1.3) Cache
# (2) Executions
# (2.0) Script
# (3) Hooks
# (3.0) After Success
# (3.0.0) codecov-io (codecov-bash)
#
# [Copyright]
# Copyright (C) 2016 Arctic Ice Studio <development@arcticicestudio.com>
#
# [References]
# Travis CI Documentation
# (https://docs.travis-ci.com)
# +----------------------------------------------------------------------------+
# + Environment [1] +
# +----------------------------------------------------------------------------+
# +----------------------------------------------------------------------------+
# + Environment - Language [1.0] +
# +----------------------------------------------------------------------------+
# Sets the language environment.
#
# @since 0.3.0
language: java
# +----------------------------------------------------------------------[1.0]-+
# +----------------------------------------------------------------------------+
# + Environment - JDK [1.1] +
# +----------------------------------------------------------------------------+
# The JDK versions to test again.
#
# @since 0.3.0
jdk:
- oraclejdk8
# +----------------------------------------------------------------------[1.1]-+
# +----------------------------------------------------------------------------+
# + Environment - Permissions [1.2] +
# +----------------------------------------------------------------------------+
# Defines the usage of a sudo'ed environment.
#
# @since 0.3.0
sudo: false
# +----------------------------------------------------------------------[1.2]-+
# +----------------------------------------------------------------------------+
# + Environment - Cache [1.3] +
# +----------------------------------------------------------------------------+
# Sets directories to persist between builds.
# This is especially useful for dependencies that need to be downloaded and/or
# compiled from source.
#
# @since 0.3.0
cache:
directories:
- $HOME/.m2
# +----------------------------------------------------------------------[1.3]-+
# +------------------------------------------------------------------------[1]-+
# +----------------------------------------------------------------------------+
# + Executions [2] +
# +----------------------------------------------------------------------------+
# +----------------------------------------------------------------------------+
# + Executions - Script [2.0] +
# +----------------------------------------------------------------------------+
# Sets script command to be executed.
#
# @since 0.3.0
script: mvn -B test -P code-coverage
# +----------------------------------------------------------------------[2.0]-+
# +------------------------------------------------------------------------[2]-+
# +----------------------------------------------------------------------------+
# + Hooks [3] +
# +----------------------------------------------------------------------------+
# +----------------------------------------------------------------------------+
# + Hooks - After Success [3.0] +
# +----------------------------------------------------------------------------+
# Executes specified commands after the build exited successfully.
#
# @since 0.3.0
after_success:
# +----------------------------------------------------------------------------+
# + Hooks - After Success - codecov-io (codecov-bash) [3.0.0] +
# +----------------------------------------------------------------------------+
# Triggers the codecov.io bash script.
#
# @since 0.3.0
- bash <(curl -s https://codecov.io/bash)
# +--------------------------------------------------------------------[3.0.0]-+
# +----------------------------------------------------------------------[3.0]-+
# +------------------------------------------------------------------------[3]-+