forked from jcryptool/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (62 loc) · 3.7 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
59
60
61
62
sudo: false
language: java
dist: trusty
jdk:
- oraclejdk8
branches:
only:
- develop
before_install:
- git clone https://github.com/jcryptool/crypto.git ~/build/jcryptool/crypto
- echo "MAVEN_OPTS=-Xmx2048m" > ~/.mavenrc
install: true
script:
- mvn clean verify -f org.jcryptool.releng/pom.xml -DskipTests=true
before_deploy:
- git config --local user.name "Dominik Schadow"
- git config --local user.email "[email protected]"
- git tag "Weekly-Build--$(date +'%Y-%m-%d')"
after_success:
# Rename files for better readability
- mv 'org.jcryptool.product/target/products/jcryptool-1.0.0-linux.gtk.x86_64.tar.gz' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Linux-64bit.tar.gz'
- mv 'org.jcryptool.product/target/products/jcryptool-1.0.0-linux.gtk.x86_64.tar.gz.md5' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Linux-64bit.tar.gz.md5'
- mv 'org.jcryptool.product/target/products/jcryptool-1.0.0-linux.gtk.x86_64.tar.gz.sha1' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Linux-64bit.tar.gz.sha1'
- mv 'org.jcryptool.product/target/products/jcryptool-1.0.0-macosx.cocoa.x86_64.tar.gz' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-macOS-64bit.tar.gz'
- mv "org.jcryptool.product/target/products/jcryptool-1.0.0-macosx.cocoa.x86_64.tar.gz.md5' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-macOS-64bit.tar.gz.md5'
- mv 'org.jcryptool.product/target/products/jcryptool-1.0.0-macosx.cocoa.x86_64.tar.gz.sha1' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-macOS-64bit.tar.gz.sha1'
- mv 'org.jcryptool.product/target/products/jcryptool-1.0.0-win32.win32.x86_64.zip' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Windows-64bit.zip'
- mv 'org.jcryptool.product/target/products/jcryptool-1.0.0-win32.win32.x86_64.zip.md5' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Windows-64bit.zip.md5'
- mv 'org.jcryptool.product/target/products/jcryptool-1.0.0-win32.win32.x86_64.zip.sha1' 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Windows-64bit.zip.sha1'
deploy:
- provider: releases
prerelease: true
api_key:
secure: R/UG294tu6IY7TosmU34/4s2xzSdcUJduZJyQwUC+aGRIm+gSiUniO69MR4KOpStN5EO72RVmEJzFDMe0dpUN8DEoYfSl3ovTWmKF7OTOX/5cCuciR13CT2D8jUU72jws7BIuZbrjggzJWJ79G6zUGo8EyE6xnMoT4ODscT0Emw=
file:
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Linux-64bit.tar.gz'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-macOS-64bit.tar.gz'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Windows-64bit.zip'
skip_cleanup: true
on:
repo: jcryptool/core
branch: develop
condition: "$TRAVIS_EVENT_TYPE = cron"
- provider: releases
prerelease: false
api_key:
secure: R/UG294tu6IY7TosmU34/4s2xzSdcUJduZJyQwUC+aGRIm+gSiUniO69MR4KOpStN5EO72RVmEJzFDMe0dpUN8DEoYfSl3ovTWmKF7OTOX/5cCuciR13CT2D8jUU72jws7BIuZbrjggzJWJ79G6zUGo8EyE6xnMoT4ODscT0Emw=
file:
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Linux-64bit.tar.gz'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Linux-64bit.tar.gz.md5'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Linux-64bit.tar.gz.sha1'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-macOS-64bit.tar.gz'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-macOS-64bit.tar.gz.md5'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-macOS-64bit.tar.gz.sha1'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Windows-64bit.zip'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Windows-64bit.zip.md5'
- 'org.jcryptool.product/target/products/JCrypTool-1.0.0-Windows-64bit.zip.sha1'
skip_cleanup: true
on:
repo: jcryptool/core
branch: master
tags: true