Skip to content

Commit 616c05d

Browse files
committed
unified workbench
1 parent 84f25ea commit 616c05d

File tree

1 file changed

+69
-31
lines changed

1 file changed

+69
-31
lines changed

.travis.yml

Lines changed: 69 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
language: java
22

3+
notifications:
4+
slack:
5+
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=
6+
7+
env:
8+
global:
9+
- MODULE_ID=cbjavaloader
10+
matrix:
11+
12+
- ENGINE=lucee@5
13+
- ENGINE=adobe@10
14+
- ENGINE=adobe@11
15+
- ENGINE=adobe@2016
16+
317
branches:
418
only:
519
- development
620
- master
721

8-
sudo: required
9-
1022
dist: trusty
1123

24+
sudo: required
25+
1226
before_install:
1327
# CommandBox Keys
1428
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
@@ -17,46 +31,70 @@ before_install:
1731

1832
install:
1933
# Install Commandbox
20-
- sudo apt-get update && sudo apt-get --assume-yes install commandbox
34+
- sudo apt-get update && sudo apt-get --assume-yes install rsync jq commandbox
2135
# Test that the box binary is available and ready for our tests
2236
- box version
23-
# Install Dependencies
24-
- box install
25-
# Store the Ortus API Key for forgebox publishing in `master`
37+
# If using auto-publish, you will need to provide your API token with this line:
2638
- box config set endpoints.forgebox.APIToken=$FORGEBOX_API_TOKEN > /dev/null
27-
# Startup Server
28-
- box server start
39+
# Setup for our tests
40+
- mkdir tests/results
41+
- sudo chmod -R 775 tests/results
2942

43+
# Build script - note module versioning is passed to ANT
3044
script:
31-
# Execute build via ANT
32-
- ant -DisTravis=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -f workbench/build.xml
33-
#- curl http://localhost:49616/tests/runner.cfm > log.html && cat log.html
34-
# Spit out log just in case we need to debug
35-
- box server log
45+
# run our dependency install to ensure the workbench is in place
46+
- box install
47+
# add our module-specific build properties
48+
- printf "\nmodule.name=$MODULE_ID" >> workbench/build.properties
49+
- printf "\ncfengine=$ENGINE" >> workbench/build.properties
50+
# execute our build
51+
- ant -DisTravis=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -Dbuild.branch=$TRAVIS_BRANCH -f workbench/build.xml
52+
53+
after_failure:
54+
- cd $TRAVIS_BUILD_DIR
55+
# Display the contents of our root directory
56+
# Spit out our Commandbox log in case we need to debug
57+
- box server log name=$ENGINE
58+
- cat `box system-log`
3659

3760
# Only executed when merging to master
3861
before_deploy:
39-
- mkdir s3deploy
40-
- cp -r ./artifacts/cbjavaloader/* ./s3deploy/
62+
- cd $TRAVIS_BUILD_DIR
63+
- mkdir -p s3deploy
64+
- rsync -av ./artifacts/$MODULE_ID/ ./s3deploy/
4165
- rm -f ./s3deploy/box-repo.json
4266

4367
deploy:
44-
on:
45-
branch:
46-
- master
47-
skip_cleanup: true
48-
provider: s3
49-
#AWS Credentials need to be set in Travis
50-
access_key_id: $AWS_ACCESS_KEY
51-
secret_access_key: $AWS_ACCESS_SECRET
52-
bucket: "downloads.ortussolutions.com"
53-
local-dir: s3deploy
54-
upload-dir: ortussolutions/coldbox-modules/cbjavaloader
55-
acl: public_read
68+
#Module Deployment
69+
- provider: s3
70+
on:
71+
branch:
72+
- master
73+
- development
74+
condition: "$ENGINE = [email protected]"
75+
skip_cleanup: true
76+
#AWS Credentials need to be set in Travis
77+
access_key_id: $AWS_ACCESS_KEY
78+
secret_access_key: $AWS_ACCESS_SECRET
79+
bucket: "downloads.ortussolutions.com"
80+
local-dir: s3deploy
81+
upload-dir: ortussolutions/coldbox-modules/$MODULE_ID
82+
acl: public_read
83+
#API Docs Deployment
84+
- provider: s3
85+
on:
86+
branch:
87+
- master
88+
condition: "$ENGINE = [email protected]"
89+
skip_cleanup: true
90+
#AWS Credentials need to be set in Travis
91+
access_key_id: $AWS_ACCESS_KEY
92+
secret_access_key: $AWS_ACCESS_SECRET
93+
bucket: "apidocs.ortussolutions.com"
94+
local-dir: build/apidocs
95+
upload-dir: coldbox-modules/$MODULE_ID
96+
acl: public_read
97+
5698

5799
after_deploy:
58100
- cd $TRAVIS_BUILD_DIR/build && box forgebox publish
59-
60-
notifications:
61-
slack:
62-
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=

0 commit comments

Comments
 (0)