File tree 2 files changed +20
-12
lines changed
2 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 1
- # Still needs tweaks so that a 'release' commit causes Gradle to
2
- # execute the 'bintrayUpload' task instead of the 'build' task.
3
- # Or maybe the upload should always happen, but the publishing
4
- # is a separate task?
1
+ # The .travis/builder.sh script now takes into account whether this is a
2
+ # tagged commit and whether it's part of the RPTools repository. If the
3
+ # answer is yes to both, then "./gradlew bintrayUpload" is executed.
4
+ # Otherwise, it's just a regular "./gradlew build".
5
+ #
6
+ # Eventually, we'll have Travis do this as a deploy target:
7
+ # https://docs.travis-ci.com/user/deployment/bintray/
5
8
language : java
6
9
script : ./.travis/builder.sh
7
- jdk :
8
- - oraclejdk8
10
+ jdk : oraclejdk8
9
11
10
12
# Shamelessly copied from Jamz's TokenTool configuration file. :)
11
13
before_cache :
@@ -25,9 +27,16 @@ deploy:
25
27
provider : releases
26
28
api_key :
27
29
secure : ZwgxkBc3Q+U8j6V02Z5lco0nR4QB8C+ucWL8z9lwiX8/i0JcoKiKcaoGMujQD+xCjy4dYScQGoyQo3mZgecjPbciC28SjQ0qHenhB1NXQ/NatmzK7pBAZOskB6YGHunvz3/8tkyXrhUZNCcLgz0sNZsROYNp5JKbEQ6PRCqdoJrgwIsy+0luq8daByBqTdd+Pakh/BX1TLyhfqxXiWMsSAi5GcRZATCTLW8Q2G/R6rfKf77A4Yl6Z8qac6r8EkuLoBBMp5GleQZiULRcl9zpvzyrZH0hnua+wLaMGimx1jucUS9bxvk7Dcrk2YRbPUSAi2NpytnS0ek7noa6vOIvJtPPH4aNObvtvLq+scl8rpHBREOBZ9y3JoCWnu9ZKePRVoJqpo1es88hbw4pSOX1TJblgvTKL+QlNnmnQ4cGDn/K8zb2rN/EKp1fygoG/WiLSHOx8/mC79PLw/F6M9ecnZv/gWF7fiY8Y1v2PmwZRPxpyhV4pmEBkEYP3FSmGznPdylkopktn8L4Uk5GT2BuMqdiFILWAVGlmeRPwCip5lazx3kaj1jMcIVJoKCYcBzdfR8nte5VQp+oXBewFPqkHWx8Iu0ZmC9l/2kqsD5bENnhruSNLGI8EVEzV5LqKfsp+bdD1uFJc7jNu9nlfQBbEMFfGCb82757zmxjGp3uhNg=
30
+
31
+ # Must prevent 'git stash --all' that Travis does -- we want the JARs
32
+ # to still be in place!
33
+ skip_cleanup : true
34
+
28
35
file_glob : true
29
36
file : build/libs/*.jar
30
- skip_cleanup : true
37
+
38
+ # The 'draft' tag prevents the release from being public unless/until
39
+ # the release is edited at github.com and the state changed.
31
40
draft : true
32
41
on :
33
42
tags : true
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
# Either runs a normal './gradlew build' or, if this CI run is because
4
- # of TRAVIS_TAG, runs './gradlew bintrayUpload' instead.
4
+ # of a tagged commit on the RPTools repository, runs
5
+ # './gradlew bintrayUpload' instead.
5
6
6
7
# For JDK9, should add:
7
8
# _JAVA_OPTIONS="${JAVA_OPTIONS} --illegal-access=permit"
8
- # .. in order to get rid of the error messages sent to the console.
9
+ # .. in order to get rid of the warning messages sent to the console.
9
10
#
10
11
# Not needed at the current time, though, since the RPTools
11
12
# libraries can be built using JDK8.
12
13
13
- set -ev
14
+ set -vex
14
15
15
16
if [ " X$TRAVIS_TAG " = " X" ] || [ " X$TRAVIS_REPO_SLUG " != " RPTools/rplib" ]; then
16
- echo " Building; no bintray upload."
17
17
./gradlew --no-daemon build
18
18
else
19
- echo " Building; will upload to bintray when finished."
20
19
./gradlew --no-daemon bintrayUpload \
21
20
" -Dtag=$TRAVIS_TAG " \
22
21
" -Dpublish=true" \
You can’t perform that action at this time.
0 commit comments