forked from thombergs/docx-stamper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 1002 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
language: java
install: true
jdk:
- openjdk8
sudo: false
before_install:
- chmod +x gradlew
stages:
- name: build
# - name: snapshot
# only publish snapshots from "master" branch and not in pull requests
# if: branch = master AND type IN (push)
- name: release
# only publish releases from "release" branch and not in pull requests
if: branch = release AND type IN (push)
jobs:
include:
# run gradle build
- stage: build
script:
- ./gradlew build -Ddocx4j.version=6.1.2
- ./gradlew build -Ddocx4j.version=6.0.1
# 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