-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (36 loc) · 1.86 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
language: java
git:
depth: 1
jdk:
- openjdk8
dist: trusty
env:
global:
- DISPLAY=:99.0
before_install:
- sh -e /etc/init.d/xvfb start - sleep 10
cache:
directories:
- "$HOME/.m2"
before_deploy:
# Thanks to https://stackoverflow.com/questions/3545292/how-to-get-maven-project-version-to-the-bash-command-line
- PRJ_VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec)
# Important to clean before packaging, otherwise any excluded file in the given profile would still get included in the released package
- mvn -P 'swt-unix,release' clean package
# Move the resulting package, otherwise it gets wiped out at the next clean
- mv target/pdf-p-${PRJ_VERSION}-distr-linux.zip .
- mvn -P '!swt-unix,swt-windows,release' -Dmaven.test.skip=true clean package
- mv target/pdf-p-${PRJ_VERSION}-distr-windows.zip .
- mvn -P '!swt-unix,swt-mac,release' -Dmaven.test.skip=true clean package
- mv target/pdf-p-${PRJ_VERSION}-distr-mac.zip .
deploy:
provider: releases
api_key:
secure: IqjJhlSdj1QmNSEi2D3dze1mKYgaR0XlZjDN2QZP29y8OzVmbuu8u2STlxhfa2RhXFqWWe16HpyG4SIW93ws9b9MGIf464wMb4Tcs4MpeS9DT+dZU2TQBSYgW4QpsXXkihyP739QvRzkWboB6C1PxnvQ8jWl8FYPnccHSznw0YD1ZpQtY1q+Uio7A7boIvmOypuc6UeZDussv0AabM/tjS+D/Tvsrg8550TTE4M0KseSaTK5nakwjKK6B7uiq03peFw6Zarfo8cIN3fRvkDKgtvoZmCj4ZScvac3EY9WOs3HNo/2qaweEcYWfwrFAbedehCalG+orHEWta8ZB1lcIko3k1CeCCXKbp+3LMO1bX5zVjjEjCcQhfSbnKcnGjlFLWyDZwWXu2JUegnLbuT+ildNjX0WKyAiFrCa6y3Fv6K0Nuf/9Vcuj08042sqBGVlbZLsxyjald/ZlSuPuhhEJwlLpGmSjbdJMMVIL2Yi+tqUjhHNCLOghz9M5iga2/Y/7etF8zFpQ/CHg7wv9ErcxeJZCFmpwKYW77Oh3KWGI7FxNNA0sEdGchPegNtdD3//1w1kh0LRZqZ71jFGQ9FeV6biX8QyDrLa4+vKyWWEGZyC+dlBflbrmddSO97NpodGJ+Ykw9XknD1iqSHMhqsMUkJmKYmxLra4MsCrz4PRp7A=
file:
- pdf-p-${PRJ_VERSION}-distr-linux.zip
- pdf-p-${PRJ_VERSION}-distr-windows.zip
- pdf-p-${PRJ_VERSION}-distr-mac.zip
on:
tags: true
skip_cleanup: true