Skip to content

Commit 7da6337

Browse files
Merge branch 'development' into master
2 parents 7f15cb6 + e9b4f27 commit 7da6337

File tree

110 files changed

+609
-16892
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+609
-16892
lines changed

.gitignore

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
# IDE Stuff
12
.settings
2-
logs/*.log
33
settings.xml
4-
.netbeans
5-
test/results/*.properties
6-
test/results/*.html
7-
test/results/*.log
8-
tests/results
9-
modules/cbjavaloader
10-
modules/cbi18n
4+
5+
# Logs
6+
logs/*.log
7+
8+
# Test Results
9+
tests/results/*
10+
11+
# Dependenncies
12+
coldbox/*
13+
testbox/*
14+
artifacts/*
15+
apidocs/docbox/*
16+
workbench/*
17+
build/*
18+
modules/cbi18n

.module.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
project.name=cbvalidation
2+
project.version=1.4.0
3+
module.name=cbvalidation

.travis.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
language: java
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+
16+
branches:
17+
only:
18+
- development
19+
- master
20+
21+
dist: trusty
22+
23+
sudo: required
24+
25+
before_install:
26+
# CommandBox Keys
27+
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
28+
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a
29+
/etc/apt/sources.list.d/commandbox.list
30+
31+
install:
32+
# Install Commandbox
33+
- sudo apt-get update && sudo apt-get --assume-yes install git haveged rsync commandbox
34+
# Test that the box binary is available and ready for our tests
35+
- box version
36+
# If using auto-publish, you will need to provide your API token with this line:
37+
- box config set endpoints.forgebox.APIToken=$FORGEBOX_API_TOKEN > /dev/null
38+
# Setup for our tests
39+
- mkdir tests/results
40+
- sudo chmod -R 775 tests/results
41+
42+
# Build script - note module versioning is passed to ANT
43+
script:
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
51+
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+
59+
before_deploy:
60+
- cd $TRAVIS_BUILD_DIR
61+
- mkdir -p s3deploy
62+
- rsync -av ./artifacts/$MODULE_ID/ ./s3deploy/
63+
- rm -f ./s3deploy/box-repo.json
64+
65+
deploy:
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+
97+
98+
after_deploy:
99+
- cd $TRAVIS_BUILD_DIR/build && box forgebox publish

apidocs/Application.cfc

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
component{
22

3-
this.name = "colddoc_" & hash(getCurrentTemplatePath());
3+
this.name = "APIDocs" & hash(getCurrentTemplatePath());
44
this.sessionManagement = true;
55
this.sessionTimeout = createTimeSpan(0,0,1,0);
66

7-
// mappings
8-
this.mappings[ "/colddoc" ] = getDirectoryFromPath( getCurrentTemplatePath() );
7+
// API Root
8+
API_ROOT = getDirectoryFromPath( getCurrentTemplatePath() );
9+
rootPath = REReplaceNoCase( API_ROOT, "apidocs(\\|\/)$", "" );
910

10-
rootPath = REReplaceNoCase( this.mappings[ "/colddoc" ], "apidocs(\\|\/)$", "" );
11-
this.mappings[ "/root" ] = rootPath;
12-
this.mappings[ "/cbvalidation" ] = rootPath & "modules/cbvalidation/models";
13-
14-
// request start
15-
public boolean function onRequestStart(String targetPage){
16-
return true;
17-
}
11+
this.mappings[ "/docbox" ] = API_ROOT & "docbox";
12+
this.mappings[ "/root" ] = rootPath;
13+
this.mappings[ "/cbvalidation" ] = rootPath & "modules/cbvalidation/models";
1814

1915
}

0 commit comments

Comments
 (0)