1
1
language : java
2
2
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
+
3
17
branches :
4
18
only :
5
19
- development
6
20
- master
7
21
8
- sudo : required
9
-
10
22
dist : trusty
11
23
24
+ sudo : required
25
+
12
26
before_install :
13
27
# CommandBox Keys
14
28
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
@@ -17,46 +31,71 @@ before_install:
17
31
18
32
install :
19
33
# 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
21
35
# Test that the box binary is available and ready for our tests
22
36
- 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:
26
38
- 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
29
42
43
+ # Build script - note module versioning is passed to ANT
30
44
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`
36
59
37
60
# Only executed when merging to master
38
61
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/
41
65
- rm -f ./s3deploy/box-repo.json
42
66
43
67
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
+ - development
89
+ condition :
" $ENGINE = [email protected] "
90
+ skip_cleanup : true
91
+ # AWS Credentials need to be set in Travis
92
+ access_key_id : $AWS_ACCESS_KEY
93
+ secret_access_key : $AWS_ACCESS_SECRET
94
+ bucket : " apidocs.ortussolutions.com"
95
+ local-dir : build/apidocs
96
+ upload-dir : coldbox-modules/$MODULE_ID
97
+ acl : public_read
98
+
56
99
57
100
after_deploy :
58
101
- 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