Skip to content

Commit f7c34ed

Browse files
committed
More key testing
1 parent 3888e86 commit f7c34ed

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

.travis.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
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/
58
language: java
69
script: ./.travis/builder.sh
7-
jdk:
8-
- oraclejdk8
10+
jdk: oraclejdk8
911

1012
# Shamelessly copied from Jamz's TokenTool configuration file. :)
1113
before_cache:
@@ -25,9 +27,16 @@ deploy:
2527
provider: releases
2628
api_key:
2729
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+
2835
file_glob: true
2936
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.
3140
draft: true
3241
on:
3342
tags: true

.travis/builder.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
#!/usr/bin/env bash
22

33
# 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.
56

67
# For JDK9, should add:
78
# _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.
910
#
1011
# Not needed at the current time, though, since the RPTools
1112
# libraries can be built using JDK8.
1213

13-
set -ev
14+
set -vex
1415

1516
if [ "X$TRAVIS_TAG" = "X" ] || [ "X$TRAVIS_REPO_SLUG" != "RPTools/rplib" ]; then
16-
echo "Building; no bintray upload."
1717
./gradlew --no-daemon build
1818
else
19-
echo "Building; will upload to bintray when finished."
2019
./gradlew --no-daemon bintrayUpload \
2120
"-Dtag=$TRAVIS_TAG" \
2221
"-Dpublish=true" \

0 commit comments

Comments
 (0)