-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
.travis.yml
49 lines (45 loc) · 1.93 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
language: java
os: linux
jdk:
- openjdk8
- openjdk11
- openjdk13
script:
- mvn clean test -Pdebug -B -U -Dgpg.skip -Dmaven.javadoc.skip=true
after_success:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
- mvn package -B -U
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
- export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[')
deploy:
- provider: releases
skip_cleanup: true
name: $project_version
draft: true
api_key:
secure: qD8WixE5dpxKyiDEEPdrWVchBxMw7NKLrSNeUEJIb+p9Wq/yJ4cf3DScXYJToFJ/SB5JPCjjyj7rudOJ2wUMydJ01UGVJ+vbR/dTIXjtQxRJ7bDuqq4AGeUjZvDeBhigrA6hxWsqkzbRZzPEMcsWPa77Bs5drwiSJVixS2kLWgH3cKzLHZaqRQnlOeX20MHcPLFr/K0buFBg+qKUazx/z56qJuT0hh6+DYbXhdB9qK3bcGgUPE7rEaq6qfK0o3bZibCxtxFpMQR9qNXHnxfV5hUnq/k/YHQUNwFVo8kA3mSniYd9LxycLQ5nlwcbA2EgjKoJmQ3GYg1VLNsXVbWbw4aAl54h/7k7JzlCfpmM4DDrN62hGYzcoU+dD1WkAQob7a20pmmUmZI5LYUOJPIrpS98/DjDQdnkGeU/waCswSmjIYCqWhX2n0F1yYmC8X9nD2tRUCSyAAT3jFotLyRCsbjy1zg5xBFDw/Lgvd2ixgsnlVVKJrAo4q396WWstcL/2oGR/+J5K/Otlh0BBjJ+ND6tlKqOMFVLm6sE8WL0490Y9C2kumf9kDXV3QqganPnGS7/2MqqJBHrqhDXUbSZhkcExYfZwFjMqHA+Fi6yAFUvtNBC5W6nydWi2Nh1k5QiHtxCnukVnGU7iN0o+tT/H5d3UEklT+xIE0tILWcrXII=
file_glob: true
file:
- player/target/librespot-player-*.jar
- api/target/librespot-api-*.jar
on:
repo: librespot-org/librespot-java
jdk: 'openjdk8'
tags: true
- provider: script
script: mvn deploy --settings .maven.xml -B -U -Possrh
on:
repo: librespot-org/librespot-java
jdk: 'openjdk8'
all_branches: true
condition: $TRAVIS_BRANCH = "master" || $TRAVIS_BRANCH = "dev"
- provider: script
script: mvn deploy --settings .maven.xml -B -U -Pgithub
on:
repo: librespot-org/librespot-java
jdk: 'openjdk8'
tags: true
cache:
directories:
- ~/.m2/repository