-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
34 lines (33 loc) · 1.03 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
os: linux
dist: trusty
language: java
sudo: required
env:
- MEGA_CMD_TTL=30000
before_install:
#Megacmd required ubuntu packages
- sudo apt-get -y install libc-ares2 libcrypto++9 libmediainfo0 libzen0
#Install Megacmd
- wget https://mega.nz/linux/MEGAsync/xUbuntu_14.04/amd64/megacmd-xUbuntu_14.04_amd64.deb
- sudo dpkg -i ./megacmd-xUbuntu_14.04_amd64.deb
- mega-version
- mega-help
before_deploy:
#GPG keys
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
- export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[')
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: target/megacmd4j-$project_version.jar
skip_cleanup: true
on:
tags: true
branch: master
after_deploy:
# After running make release a release tag is created.
# Then run this script and a release artifact is
# uploaded to the Maven Central
- make deploy