This repository has been archived by the owner on Dec 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
42 lines (41 loc) · 1.76 KB
/
.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
36
37
38
39
40
41
42
# https://travis-ci.org/stormpath/stormpath-shiro
language: java
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
before_install:
- export PROJECT_VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec)
- export BUILD_DOCS="$([ $TRAVIS_JDK_VERSION == 'oraclejdk8' ] && echo 'true')"
- export IS_RELEASE="$([ ${PROJECT_VERSION/SNAPSHOT} == PROJECT_VERSION ] && echo 'true')"
install:
- test -z "$BUILD_DOCS" || pip -q install --user sphinx
script:
- test -n "$BUILD_DOCS" || mvn install
- test -z "$BUILD_DOCS" || mvn install -Psphinx-docs -Pdocs && mvn javadoc:javadoc javadoc:aggregate -Paggregate-docs
after_success:
- test -z "$BUILD_DOCS" || bash <(curl -s https://codecov.io/bash)
#- test -z "$BUILD_DOCS" || test -z "$IS_RELEASE" || ./publish_docs.sh
# Stormpath API Key configuration.
#
# If you want to use your own API Key:
#
# 1. Ensure you have the travis gem installed:
#
# gem install travis
#
# 2. change the value of STORMPATH_API_KEY_ID below to match your own API Key ID
#
# 3. Change the 'secure' value to be the output of the following command:
#
# travis encrypt STORMPATH_API_KEY_SECRET=YOUR_API_KEY_SECRET
#
# where YOUR_API_KEY_SECRET is your actual API Key secret value. Once the above command finishes, replace the secure
# value below with the output of that command.
env:
global:
- STORMPATH_API_KEY_ID=CN5D6CEHMI7M1HVSBW74N626X
- secure: W7X8AjOaQRmrzfZ3G2wn5rxld1aw5osYLKWY98U6hU5jy148HLzJ1s+v/RdydAAB2d4xuYvr5WrUEaF/eHJ4AF0zBNDwst84VHUxT3yTzBFVHgnd/rbn8AMpITQtwIiXEr+hMK3cAVXwZtZ+mLmkllyf48Myk75QDxwwJnKS2UA=
notifications:
slack:
secure: X3mBxrLqpqzlqytMhWxDzE7tLQ7xpZGGL7UuEL02h0l7VyYRJuWpn1PR50kWOAiulLTIYsXN6Q/ByEjjgcAUT/8Z1ataA44xDRNe6AbhPtrHg3sjhVeAcz4cPfDog30v/qLljKYTdazPeu7/WMmjCKYzxK32LBJx111GASFl0mA=