-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (28 loc) · 868 Bytes
/
Copy path.travis.yml
File metadata and controls
35 lines (28 loc) · 868 Bytes
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
language: java
install: true
sudo: false
addons:
apt:
packages:
- oracle-java8-installer
before_install:
- chmod +x gradlew
stages:
- name: build
- name: snapshot
# only publish snapshots from "master" branch
if: branch = master
- name: release
# only publish release from "release" branch
if: branch = release
jobs:
include:
# run gradle build
- stage: build
script: ./gradlew build
# publish snapshot to oss.jfrog.org
- stage: snapshot
script: ./gradlew artifactoryPublish -x test -Dsnapshot=true -Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER
# release a new stable version to bintray
- stage: release
script: ./gradlew bintrayUpload -x test -Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER