forked from hhu-bsinfo/dxnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (26 loc) · 813 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
language: java
install: true
stages:
- name: build
- name: snapshot
if: branch = development
- name: release
if: branch = master
jobs:
include:
- stage: build
script: ./gradlew build
- stage: snapshot
script: ./gradlew artifactoryPublish --exclude-task test -Dbintray.user=${BINTRAY_USER} -Dbintray.key=${BINTRAY_KEY} -Dbuild.number=${TRAVIS_BUILD_NUMBER}
- stage: release
script: ./gradlew bintrayUpload --exclude-task test -Drelease=true -Dbintray.user=${BINTRAY_USER} -Dbintray.key=${BINTRAY_KEY} -Dbuild.number=${TRAVIS_BUILD_NUMBER}
before_deploy: ./gradlew distZip --exclude-task test
deploy:
provider: releases
api_key: ${ACCESS_TOKEN}
skip_cleanup: true
file: build/dist/dxnet.zip
on:
repo: hhu-bsinfo/dxnet
branch: master
tags: true