This repository has been archived by the owner on Sep 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
52 lines (48 loc) · 3.24 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
#######################################################################
# Copyright (C) 2017-2018 Kaloyan Raev and others
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#######################################################################
language: java
env:
global:
- JAVA_LIBSTORJ_VERSION=0.8.2
install: true
script: mvn clean verify
before_deploy:
- mvn package
# Prepare a package for Windows
- curl -sSL https://github.com/Storj/java-libstorj/releases/download/$JAVA_LIBSTORJ_VERSION/java-libstorj-$JAVA_LIBSTORJ_VERSION-win64-dlls.zip -O
- unzip java-libstorj-$JAVA_LIBSTORJ_VERSION-win64-dlls.zip -d java-libstorj-dlls-$JAVA_LIBSTORJ_VERSION
- zip -j goobox-sync-storj-$TRAVIS_TAG-win64.zip java-libstorj-dlls-$JAVA_LIBSTORJ_VERSION/* src/main/resources/win64/* target/goobox-sync-storj-$TRAVIS_TAG.jar
# Prepare a package for macOS
- mkdir -p java-libstorj-$JAVA_LIBSTORJ_VERSION-mac-dylibs
- curl -sSL https://github.com/Storj/java-libstorj/releases/download/$JAVA_LIBSTORJ_VERSION/java-libstorj-$JAVA_LIBSTORJ_VERSION-macos-dylibs.tar.gz | tar -zxv -C java-libstorj-$JAVA_LIBSTORJ_VERSION-mac-dylibs
- zip -j goobox-sync-storj-$TRAVIS_TAG-darwin.zip java-libstorj-$JAVA_LIBSTORJ_VERSION-mac-dylibs/* src/main/resources/goobox-sync-storj target/goobox-sync-storj-$TRAVIS_TAG.jar
# Prepare a package for Linux
- mkdir -p java-libstorj-$JAVA_LIBSTORJ_VERSION-linux64-so
- curl -sSL https://github.com/storj/java-libstorj/releases/download/$JAVA_LIBSTORJ_VERSION/java-libstorj-$JAVA_LIBSTORJ_VERSION-linux64-so.tar.gz | tar -zxv -C java-libstorj-$JAVA_LIBSTORJ_VERSION-linux64-so
- zip -j goobox-sync-storj-$TRAVIS_TAG-linux64.zip java-libstorj-$JAVA_LIBSTORJ_VERSION-linux64-so/* src/main/resources/goobox-sync-storj target/goobox-sync-storj-$TRAVIS_TAG.jar
deploy:
provider: releases
api_key:
secure: S/q7PYrt2JxBvMyQbaKcVRAD8uCfWuca5ZTIE2euiOeI7ZLHhRItHrqAF/1LcOPhbwwg3Sit4yjlkAv5LYFCKWXH5lHMtzQTTxDJ06MoP7H8jjXquOJL3rxnfldmjRcwp7+JgoPp7HdwFVp3yVrJXLuMqRLMxOllbq9QMMj1cE85Tq6SrAxeujTkRGyAZXAQf0lsd0rl5jc1fxraTEcj8CseRcYAmkIYvmc7hpOEE4WFincYIfJz+o4WWYAIWOuwJ2TCfvCZfp2ibxDtykaUQgKwGaM0bc5LqsoqRBr6fNecsfw7KfLZKhqS+W1s3i+2UeJOgKrdjFi7jFbgi8CpJX0HxFrQX/yKkj4UfWF+5J+yAcvn9sq1hEUI8udKx+9jMvduRxViebGvJ/DgmkeJEvOumQ+Cd2cdTJJYVyX8NL9tVUQBg5biDoZ4qU+RIGzGIWvIRDVjynnl0nMTS0+RxPQM31a2cNnPeNgpqJAIxAjdShgM09fWyfnIds0WAu44eKt96IIfyXw564zTd6Rq4MODRIWxqUxOH8/7/3nMwI5tk4a/Rrhfd+svtHOJO71iMKTdNeGUmaigksPNdxHH72X98oHsH49DnafEgOkpUSIzy5ppFtXYqPygkaH589gqzwbADrXEy55BXoZKeQmD7iBRkx+YODydgoHA/1dyTGU=
skip_cleanup: true
file:
- goobox-sync-storj-$TRAVIS_TAG-win64.zip
- goobox-sync-storj-$TRAVIS_TAG-darwin.zip
- goobox-sync-storj-$TRAVIS_TAG-linux64.zip
on:
tags: true
repo: GooBox/goobox-sync-storj