forked from markmandel/ColdDoc
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis Automation
- Loading branch information
Showing
9 changed files
with
410 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false | ||
indent_style = tab | ||
indent_size = 4 | ||
tab_width = 4 | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{md,markdown}] | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,78 @@ | ||
language: java | ||
|
||
notifications: | ||
slack: | ||
secure: FIHlTn/YO7Wgumm1uIqmoEsqjQA7fV0AE94Rjc5yKzM3AquQa8HicgDVVk0d2GrKRnl0xt3j4ZJV//VJyIjlCd/QVKuj48R2ChjEY2im3+99HFPafCUI5/S2uyowKU6mJTFonH9v6p41eqxdbiAxJdDGOT0V2Gpt3UBSNuHz8ED9/aIHqv+P7M+VD6Xd2XYwctPniWlaSWx57sWcnG/VkFG45qFQAyha64uxOOe4M3ZmG/n5FfauZ8cBVLiRKEIr+CyNhh1ujfzi7+4uzMlSNL5t/BbZamAQuZzqGzGQ9RVvIlyPgUGNJtDEE/hWS09aagXF5T6EMj00szizErh4J1/x4qZwml5+TcBN31E0QmAhCtZe85sr3tYgic+hEz9XX1yymQzf/C7n4to2yNvq0r4g51xDk8IuP95WEh7zaqLlvFZvBFgxpHZBMYlRvhytjOYDeIFRMcGwHZcXosaG2ejqDwcGq/LC4oeG4sSwmg9sdRrtcmcanrNqrBka86WYO6LntI3JdZ86/1ACEUHzhCCwvrKELc9Ji1xxGAgS7QKH+s2/hnJuiMyv73gOVLKYC+wPMLt+fvOmPLSEl+PJiAIlToBq1KUBg03RSQLfPOLD7OrJ8VvDZsEPwejqlGDyc4wRglS9OTi7SnN5LYHSDNDdGdREegWqq9qDHEYEVLI= | ||
|
||
branches: | ||
only: | ||
- development | ||
sudo: required | ||
- master | ||
|
||
dist: trusty | ||
|
||
sudo: required | ||
|
||
before_install: | ||
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622 | ||
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a | ||
/etc/apt/sources.list.d/commandbox.list | ||
# CommandBox Keys | ||
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622 | ||
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a | ||
/etc/apt/sources.list.d/commandbox.list | ||
|
||
install: | ||
- sudo apt-get update && sudo apt-get --assume-yes install commandbox | ||
# Install Commandbox | ||
- sudo apt-get update && sudo apt-get --assume-yes install jq commandbox ant-optional | ||
# Test that the box binary is available and ready for our tests | ||
- box version | ||
# If using auto-publish, you will need to provide your API token with this line: | ||
- box config set endpoints.forgebox.APIToken=$FORGEBOX_API_TOKEN > /dev/null | ||
|
||
script: | ||
- ant -f build/build.xml | ||
# Execute build via ANT | ||
- ant -DisTravis=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -Dbuild.branch=$TRAVIS_BRANCH -f build/build.xml | ||
# Set Current Version | ||
- BUILD_VERSION=`cat $TRAVIS_BUILD_DIR/artifacts/docbox/box.json | jq '.version' -r` | ||
- echo "DocBox v$BUILD_VERSION" | ||
|
||
after_failure: | ||
- cd $TRAVIS_BUILD_DIR | ||
# Display the contents of our root directory | ||
# Spit out our Commandbox log in case we need to debug | ||
- box server log | ||
- cat `box system-log` | ||
|
||
deploy: | ||
# Binary Deployments | ||
- provider: s3 | ||
on: | ||
branch: | ||
- master | ||
- development | ||
#condition: "$ENGINE = [email protected]" | ||
skip_cleanup: true | ||
#AWS Credentials need to be set in Travis | ||
access_key_id: $AWS_ACCESS_KEY | ||
secret_access_key: $AWS_ACCESS_SECRET | ||
bucket: "downloads.ortussolutions.com" | ||
local-dir: $TRAVIS_BUILD_DIR/artifacts/docbox | ||
upload-dir: ortussolutions/docbox | ||
acl: public_read | ||
|
||
#API Docs Deployment | ||
- provider: s3 | ||
on: | ||
branch: | ||
- master | ||
- development | ||
condition: "$ENGINE = [email protected]" | ||
skip_cleanup: true | ||
#AWS Credentials need to be set in Travis | ||
access_key_id: $AWS_ACCESS_KEY | ||
secret_access_key: $AWS_ACCESS_SECRET | ||
bucket: "apidocs.ortussolutions.com" | ||
local-dir: $TRAVIS_BUILD_DIR/build-docbox/apidocs | ||
upload-dir: docbox/$BUILD_VERSION | ||
acl: public_read | ||
|
||
after_deploy: | ||
- cd $TRAVIS_BUILD_DIR/build-testbox && box forgebox publish |
Oops, something went wrong.