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=cbvalidation
10
+ matrix :
11
+
12
+ - ENGINE=lucee@5
13
+ - ENGINE=adobe@11
14
+ - ENGINE=adobe@2016
15
+
3
16
branches :
4
17
only :
5
18
- development
6
19
- master
7
20
8
- sudo : required
9
-
10
21
dist : trusty
11
22
23
+ sudo : required
24
+
12
25
before_install :
13
26
# CommandBox Keys
14
27
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
@@ -17,43 +30,70 @@ before_install:
17
30
18
31
install :
19
32
# Install Commandbox
20
- - sudo apt-get update && sudo apt-get --assume-yes install commandbox
33
+ - sudo apt-get update && sudo apt-get --assume-yes install git haveged rsync commandbox
21
34
# Test that the box binary is available and ready for our tests
22
35
- box version
23
- # Store the Ortus API Key for forgebox publishing in `master`
36
+ # If using auto-publish, you will need to provide your API token with this line:
24
37
- box config set endpoints.forgebox.APIToken=$FORGEBOX_API_TOKEN > /dev/null
25
- # Startup Server
26
- - box server start
38
+ # Setup for our tests
39
+ - mkdir tests/results
40
+ - sudo chmod -R 775 tests/results
27
41
42
+ # Build script - note module versioning is passed to ANT
28
43
script :
29
- # Execute build via ANT
30
- - ant -DisTravis=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -f workbench/build.xml
31
- # Spit out log just in case we need to debug
32
- - box server log
44
+ # run our dependency install to ensure the workbench is in place
45
+ - box install
46
+ # add our module-specific build properties
47
+ - printf "\nmodule.name=$MODULE_ID" >> workbench/build.properties
48
+ - printf "\ncfengine=$ENGINE" >> workbench/build.properties
49
+ # execute our build
50
+ - ant -DisTravis=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -Dbuild.branch=$TRAVIS_BRANCH -f workbench/build.xml
33
51
34
- # Only executed when merging to master
52
+ after_failure :
53
+ - cd $TRAVIS_BUILD_DIR
54
+ # Display the contents of our root directory
55
+ # Spit out our Commandbox log in case we need to debug
56
+ - box server log name=$ENGINE
57
+ - cat `box system-log`
58
+
35
59
before_deploy :
36
- - mkdir s3deploy
37
- - cp -r ./artifacts/cbvalidation/* ./s3deploy/
60
+ - cd $TRAVIS_BUILD_DIR
61
+ - mkdir -p s3deploy
62
+ - rsync -av ./artifacts/$MODULE_ID/ ./s3deploy/
38
63
- rm -f ./s3deploy/box-repo.json
39
64
40
65
deploy :
41
- on :
42
- branch :
43
- - master
44
- skip_cleanup : true
45
- provider : s3
46
- # AWS Credentials need to be set in Travis
47
- access_key_id : $AWS_ACCESS_KEY
48
- secret_access_key : $AWS_ACCESS_SECRET
49
- bucket : " downloads.ortussolutions.com"
50
- local-dir : s3deploy
51
- upload-dir : ortussolutions/coldbox-modules/cbvalidation
52
- acl : public_read
66
+ # Module Deployment
67
+ - provider : s3
68
+ on :
69
+ branch :
70
+ - master
71
+ - development
72
+ condition :
" $ENGINE = [email protected] "
73
+ skip_cleanup : true
74
+ # AWS Credentials need to be set in Travis
75
+ access_key_id : $AWS_ACCESS_KEY
76
+ secret_access_key : $AWS_ACCESS_SECRET
77
+ bucket : " downloads.ortussolutions.com"
78
+ local-dir : s3deploy
79
+ upload-dir : ortussolutions/coldbox-modules/$MODULE_ID
80
+ acl : public_read
81
+ # API Docs Deployment
82
+ - provider : s3
83
+ on :
84
+ branch :
85
+ - master
86
+ - development
87
+ condition :
" $ENGINE = [email protected] "
88
+ skip_cleanup : true
89
+ # AWS Credentials need to be set in Travis
90
+ access_key_id : $AWS_ACCESS_KEY
91
+ secret_access_key : $AWS_ACCESS_SECRET
92
+ bucket : " apidocs.ortussolutions.com"
93
+ local-dir : build/apidocs
94
+ upload-dir : coldbox-modules/$MODULE_ID
95
+ acl : public_read
96
+
53
97
54
98
after_deploy :
55
99
- cd $TRAVIS_BUILD_DIR/build && box forgebox publish
56
-
57
- notifications :
58
- slack :
59
- 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