-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (26 loc) · 830 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
jdk:
- openjdk10
- oraclejdk10
branches:
only:
- master
- release
stages:
- name: build
- name: deploy_snapshot
if: branch = master and type = push
- name: deploy_release
if: branch = release and type = push
jobs:
include:
- stage: build
script:
- ./gradlew --version
- ./gradlew test
- ./gradlew jacocoTestReport
- bash <(curl -s https://codecov.io/bash)
- stage: deploy_snapshot
script: ./gradlew artifactoryPublish -x test -Dsnapshot=true -Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER
- stage: deploy_release
script: ./gradlew artifactoryPublish -x test -Dsnapshot=false -Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER