forked from Dynatrace/openkit-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (42 loc) · 1.51 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
dist: trusty
# The main language that this repo uses - this enables Gradle support
language: java
# The JDK to be used
jdk:
- oraclejdk8
# The target compatibility matrix, that creates artifacts for different java versions
env:
- TARGET_COMPATIBILITY=6
- TARGET_COMPATIBILITY=7
- TARGET_COMPATIBILITY=8
# Install the repository locally - this downloads dependencies, compiles the source code, and
# creates all artifacts
install: ./gradlew assemble
# Runs tests that check the implementation (unit tests)
script: ./gradlew check --info
# Creates a GitHub release and deploys artifacts to this release
deploy:
# The provider that simplifies communication with GitHub
provider: releases
# The GitHub API key is read from the environment (needs to be configured in Travis CI)
api_key: $API_KEY
# Conditions that all must be true to create a release in the first place
on:
# Only if this commit has tags should a release be initiated
tags: true
# Only if this commit is part of the master branch should a release be initiated
branch: master
# Metadata of this release
#
# The name of this release
name: openkit-java $(git tag --contains HEAD)
# This release should be flagged as pre-release
prerelease: true
# Files to be added to this release
file:
- build/libs/openkit*-java*.jar
- build/distributions/openkit*-javadoc.zip
# Enable wildcard operators in the file selector above
file_glob: true
# Prevent cleanup of build that would otherwise delete artifacts
skip_cleanup: true