forked from gtasa-savegame-editor/gtasa-savegame-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (66 loc) · 3.36 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
63
64
65
66
jobs:
include:
- stage: linux
language: java
sudo: true
addons:
apt:
packages:
- alien
update: true
git:
depth: 3
script:
- jdk_switcher use openjdk8
- mvn clean install -Dmaven.javadoc.skip=true -B -V
- sudo alien --scripts -r "target/gtasaveedit_3.3~SNAPSHOT_all.deb"
- mkdir target/deploy
- cp -v "target/$(ls target | grep jar-with-dependencies)" target/deploy
- cp -v "target/$(ls target | grep .deb)" target/deploy
- cp -v "$(ls | grep .rpm)" target/deploy
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/826be7a4e8dce59091ef
on_success: change
on_failure: always
on_start: never
deploy:
provider: releases
api_key:
secure: lsuKoTqqWkyjemQ9QvBNIou1yOZzhqQt9c+NGYF8FcREWyPuLiDOTwrQve8skrVzwwWZVlMfyj4oef4mftN+VAEAoXWamMs3Dd9gVSoSNbGghM3KIRvBmu7n7D0EtDF3MMwGTJ2p+CQgzKWYz5uvDr0FOO3rHnjT2xyH80EgJ5Oh6seZnTpiDM+OFC2lu4iiyvC9/CAl2t+fNktBOMPbCbrL6mVcbm+5fapJPXRRfRtZS5ZOCCZKcDpjgn1H+NvOGNjRz49sAhRIjbvxX6goTCVo1ieMh+N5/vOdQRySNonFehfRCWMhlqYpBBo1meZ2vnhRT3c2AqmiNC90IvIJYR4GDktlpJSgMxREuLLu5s+g20oPifkjylZOruipksPg/5gPI1x3iiER8r3p0rAdJcvhQ6MvuSCzNsPRdhu9Uicg++KxkkielshUiCF64Jsr/HjgYiyne/eUFTVo31VqdxAIokFzgcrHzQ0v38Ktsmfh7K3xuQt19e/GLvyRHHmFwfsuCxmRbMR33Oxav4a2FwIMu6BfitZQEmQDZQtgCA4wq8iJmFQ2UhvmjY+kfD41bKc+U+jBw2ueWp2qYqc/ZoTFR8GbyGmsY5d0LCU3i+UAApoWP4MGXXD1vLv2Fd9CVl7l/ScfnMhqUzC/IRaG8xliacURcLsIUomJiqKSvXo=
file_glob: true
file: target/deploy/*
skip_cleanup: true
on:
repo: gtasa-savegame-editor/gtasa-savegame-editor
tags: true
- stage: macOS
os: osx
osx_image: xcode9.3
language: java
git:
depth: 3
script:
- mvn clean install -Dmaven.javadoc.skip=true -B -V -PmacOS -Dosx.jrePath=/Library/Java/JavaVirtualMachines/$(ls /Library/Java/JavaVirtualMachines/ | grep 1.8)
- mkdir target/deploy
- zip -r "target/GTA.SA.Savegame.Editor.app.zip" "$(find target -type d | grep .app | head -n 1)"
- cp -v "target/$(ls target | grep .dmg)" target/deploy
- cp -v "target/GTA.SA.Savegame.Editor.app.zip" target/deploy
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/826be7a4e8dce59091ef
on_success: change
on_failure: always
on_start: never
deploy:
provider: releases
api_key:
secure: lsuKoTqqWkyjemQ9QvBNIou1yOZzhqQt9c+NGYF8FcREWyPuLiDOTwrQve8skrVzwwWZVlMfyj4oef4mftN+VAEAoXWamMs3Dd9gVSoSNbGghM3KIRvBmu7n7D0EtDF3MMwGTJ2p+CQgzKWYz5uvDr0FOO3rHnjT2xyH80EgJ5Oh6seZnTpiDM+OFC2lu4iiyvC9/CAl2t+fNktBOMPbCbrL6mVcbm+5fapJPXRRfRtZS5ZOCCZKcDpjgn1H+NvOGNjRz49sAhRIjbvxX6goTCVo1ieMh+N5/vOdQRySNonFehfRCWMhlqYpBBo1meZ2vnhRT3c2AqmiNC90IvIJYR4GDktlpJSgMxREuLLu5s+g20oPifkjylZOruipksPg/5gPI1x3iiER8r3p0rAdJcvhQ6MvuSCzNsPRdhu9Uicg++KxkkielshUiCF64Jsr/HjgYiyne/eUFTVo31VqdxAIokFzgcrHzQ0v38Ktsmfh7K3xuQt19e/GLvyRHHmFwfsuCxmRbMR33Oxav4a2FwIMu6BfitZQEmQDZQtgCA4wq8iJmFQ2UhvmjY+kfD41bKc+U+jBw2ueWp2qYqc/ZoTFR8GbyGmsY5d0LCU3i+UAApoWP4MGXXD1vLv2Fd9CVl7l/ScfnMhqUzC/IRaG8xliacURcLsIUomJiqKSvXo=
file_glob: true
file: target/deploy/*
skip_cleanup: true
on:
repo: gtasa-savegame-editor/gtasa-savegame-editor
tags: true