forked from alvr/ASFui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 903 Bytes
/
.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
language: java
jdk:
- oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- chmod +x ./gradlew
script:
- ./gradlew build
after_success:
- mkdir ./out/artifacts
- mv ./out/asfui-*.jar ./out/artifacts/
- cp ./out/artifacts/asfui-*.jar ./out/artifacts/asfui.jar
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: alvr
region: eu-west-1
local_dir: ./out/artifacts
upload-dir: asfui
acl: public_read
skip_cleanup: true
on:
branch: master
- provider: releases
api_key: $GITHUB_TOKEN
file: ./out/artifacts/asfui.jar
skip_cleanup: true
on:
tags: true