-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (52 loc) · 1.53 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
sudo: false
language: java
jdk:
- openjdk8
- openjdk11
- openjdk12
- openjdk13
- openjdk-ea
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- BUILD_COMMIT=b${TRAVIS_BUILD_NUMBER}_g${COMMIT}
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches
- $HOME/.gradle/wrapper
#Test stage - Matrix expansion
install: skip # will be done by gradlew check anyway
script: ./gradlew check
matrix:
fast_finish: true
allow_failures:
- jdk: openjdk-ea
# GitHub Deploy Stage
jobs:
include:
- stage: Github Release
jdk: openjdk8
before_install:
- grep version -r gradle.properties
- echo "[INFO] BUILD_COMMIT> $BUILD_COMMIT"
- sed -i -r "/version/s/([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)/\1-$BUILD_COMMIT/g" gradle.properties
- grep version -r gradle.properties
install: skip #will be done by gradlew shadowJar anyway
script:
- echo "Create Jar file with new version ..."
- ./gradlew shadowJar
- echo "Deploying to github.com ..."
deploy:
provider: releases
prerelease: true
api_key:
secure: iKXXqoxPMsoLGlhKMwRB7dVdU0ZvOjzRaxm73zjEsEgyErL7LJ6YG+3wJl24UW8zxgpvM5hW0DKUkWSLfVoHa/1l+Bsb8yREAKJTYldZs3pjhQxWM7OBMeKWjTA7WccYrx4ShHgbgUvl4IuHXNY91kcu1pC6lZukpDUvdX4Ii70=
file_glob: true
file: "build/libs/ksar-*all.jar"
skip_cleanup: true
on:
tags: true
repo: vlsi/ksar