Skip to content

Commit 06e3bcb

Browse files
authored
Merge pull request #1 from elpete/add-adobe-2018-to-ci
Add Adobe 2018 to Travis CI
2 parents bf8ecc8 + d5441e8 commit 06e3bcb

File tree

2 files changed

+70
-97
lines changed

2 files changed

+70
-97
lines changed

.travis.yml

Lines changed: 68 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,71 @@
11
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=sendgrid-sdk
10-
matrix:
11-
- ENGINE=adobe@2016
12-
- ENGINE=adobe@11
13-
- ENGINE=lucee@5
14-
15-
16-
branches:
17-
only:
18-
- development
19-
- master
20-
2+
notifications:
3+
slack:
4+
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=
5+
env:
6+
global:
7+
- MODULE_ID=sendgrid-sdk
8+
matrix:
9+
- ENGINE=lucee@5
10+
11+
- ENGINE=adobe@2018
12+
- ENGINE=adobe@2016
13+
- ENGINE=adobe@11
14+
branches:
15+
only:
16+
- development
17+
- master
2118
dist: trusty
22-
2319
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
20+
before_install:
21+
- curl -fsSl https://downloads.ortussolutions.com/debs/gpg | sudo apt-key add -
22+
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a /etc/apt/sources.list.d/commandbox.list
23+
install:
24+
- sudo apt-get update && sudo apt-get --assume-yes install git haveged rsync commandbox
25+
- box version
26+
- box config set endpoints.forgebox.APIToken=$FORGEBOX_API_TOKEN > /dev/null
27+
- mkdir tests/results
28+
- sudo chmod -R 775 tests/results
29+
script:
30+
- box install
31+
- printf "\nmodule.name=$MODULE_ID" >> workbench/build.properties
32+
- printf "\ncfengine=$ENGINE" >> workbench/build.properties
33+
- ant -DisTravis=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -Dbuild.branch=$TRAVIS_BRANCH -f workbench/build.xml
34+
after_failure:
35+
- cd $TRAVIS_BUILD_DIR
36+
- box server log name=$ENGINE
37+
- cat `box system-log`
38+
before_deploy:
39+
- cd $TRAVIS_BUILD_DIR
40+
- mkdir -p s3deploy
41+
- rsync -av ./artifacts/$MODULE_ID/ ./s3deploy/
42+
- rm -f ./s3deploy/box-repo.json
43+
deploy:
44+
- provider: s3
45+
on:
46+
branch:
47+
- master
48+
- development
49+
condition: $ENGINE = [email protected]
50+
skip_cleanup: true
51+
access_key_id: $AWS_ACCESS_KEY
52+
secret_access_key: $AWS_ACCESS_SECRET
53+
bucket: downloads.ortussolutions.com
54+
local-dir: s3deploy
55+
upload-dir: ortussolutions/coldbox-modules/$MODULE_ID
56+
acl: public_read
57+
- provider: s3
58+
on:
59+
branch:
60+
- master
61+
- development
62+
condition: $ENGINE = [email protected]
63+
skip_cleanup: true
64+
access_key_id: $AWS_ACCESS_KEY
65+
secret_access_key: $AWS_ACCESS_SECRET
66+
bucket: apidocs.ortussolutions.com
67+
local-dir: build/apidocs
68+
upload-dir: coldbox-modules/$MODULE_ID
69+
acl: public_read
70+
after_deploy:
71+
- cd $TRAVIS_BUILD_DIR/build && box forgebox publish

tests/test.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ [email protected]=http://127.0.0.1:50680/tests/runner.cfm?
22
url.runners.lucee@5=http://127.0.0.1:50685/tests/runner.cfm?
33
url.runners.adobe@10=http://127.0.0.1:49610/tests/runner.cfm?
44
url.runners.adobe@11=http://127.0.0.1:49611/tests/runner.cfm?
5-
url.runners.adobe@2016=http://127.0.0.1:49616/tests/runner.cfm?
5+
url.runners.adobe@2016=http://127.0.0.1:49616/tests/runner.cfm?
6+
url.runners.adobe@2018=http://127.0.0.1:49616/tests/runner.cfm?

0 commit comments

Comments
 (0)