Skip to content

Commit

Permalink
REST docs weren't auto-updating, there was an issue with bash && || e…
Browse files Browse the repository at this point in the history
…valuation priority
  • Loading branch information
jkremser committed May 26, 2015
1 parent 05cb5f5 commit 827a50a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.swagger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@
# limitations under the License.
#

set -x

# generate the docs
mvn clean compile -Pdocgen -DskipTests -Dcheckstyle.skip -Dlicense.skip

FILE_NAME="rest-metrics.adoc"
FILE_PATH="api/metrics-api-jaxrs/target/generated/$FILE_NAME"

# don't push the empty docs
[[ -s $FILE_PATH ]] || echo "$FILE_PATH is empty" && exit 1
[[ -s $FILE_PATH ]] || {
echo "$FILE_PATH is empty" && exit 1
}

REPO="hawkular/hawkular.github.io"
BRANCH="swagger"
Expand Down

0 comments on commit 827a50a

Please sign in to comment.