-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
31 lines (31 loc) · 1.68 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
sudo: false
language: java
jdk:
- oraclejdk8
addons:
apt:
packages:
- rpm
before_install:
- wget -q http://www.mibble.org/download/stable/2.9.3/mibble-2.9.3.tar.gz
- tar -xzf mibble-2.9.3.tar.gz
- mvn install:install-file -DgroupId=net.percederberg -DartifactId=mibble-parser -Dversion=2.9.3 -Dpackaging=jar -Dfile=mibble-2.9.3/lib/mibble-parser-2.9.3.jar
- mvn install:install-file -DgroupId=net.percederberg -DartifactId=mibble-mibs -Dversion=2.9.3 -Dpackaging=jar -Dfile=mibble-2.9.3/lib/mibble-mibs-2.9.3.jar
before_deploy:
- mvn jdeb:jdeb && export RELEASE_DEB_FILE=$(ls target/*.deb)
- mvn rpm:rpm && export RELEASE_RPM_FILE=$(find target/ -name '*.rpm' | tail -1)
- rm -f target/original-*.jar
- export RELEASE_PKG_FILE=$(ls target/*.jar)
- echo "Deploying release to GitHub releases"
deploy:
provider: releases
api_key:
secure: "wTxthrNbMvcK9xNoJPpb2iZS0/WCcVge5psWhQg2dvu1Tw4CAti3sLF9CW+laJInXc+xxN4ApuQfjUx5Zzf8TK+1fxu6dgIdor3T09v9B+832PC7C9zJZ8txtDowMuqyV2V0ZXNJIxLGyLyxH+ipVfY3y+tZYHRGzSb9yHECg/mhNcn6bdyrwTk8wd+wkbVkSCLVcqycjlFK1xLbwM4+2qqO2rv1rycAzr9J1aaN7k90n1R2PU+IEGFtjpgF3si+1dzVQ3aFYlU+pFqVsTBHhXkzRhK2JAPipGtSYfjKwZ92Ca6EPlPrGKzN57q0LO7923qbtQxEx/BAjrF77U3GhHbIZ2SwgVvvyvvt45XGpAmj7VCY5SHwmGIpPyTFpQd8Wz01i5oFKpqu1x6b7s3Ugtm3YAlmCDqmt2qxyQum4ZljOxYQrsGXwSzsBVWMtcw4nj3J57HXLW4xw9jp7vlb33KvxkYMxHw5h+quSZnNLqVU6NF+25DkUp+LpaZDcPF34I3wMWh7LPAh4LqtNnQJXARvJPzebTXSRWeR1CUnuWYv8VN9Qg9a83Fei1F/Pp7IwR109xUAE2cCjyck66p4dHX3Y/Zp4XknPEaLduwoZZ7hLsTgDnlMO44wDlcbKG4giHmzikRsoF4Vn4kmlqRjuCGeKU09lzLtD/qPQxke3JA="
file:
- "${RELEASE_PKG_FILE}"
- "${RELEASE_DEB_FILE}"
- "${RELEASE_RPM_FILE}"
skip_cleanup: true
on:
tags: true
jdk: oraclejdk8