Skip to content

Commit bffc3e9

Browse files
authored
Merge pull request #1 from topcoder-platform/circleci
build from circleci
2 parents 1d324be + c5c36f5 commit bffc3e9

File tree

4 files changed

+199
-0
lines changed

4 files changed

+199
-0
lines changed

.deploy/circleci/build.properties

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# TopCoder Software Component Development Environment
2+
3+
# Properties to automatically start/stop Jboss. Supposed to be used mostly for Continuos Integration server
4+
jdk_home=/opt/jdk1.7.0_79
5+
db_scripts_path=<<path_to_database_scripts>>
6+
bind_addr=127.0.0.1
7+
jnp_port=1099
8+
jboss_heap_size=512m
9+
10+
# The location of the deployment directory for JBoss server.
11+
JBOSS_HOME=/root/jboss-4.0.2
12+
13+
# remote deploy information
14+
#scp_path=scp
15+
# scp_path=pscp
16+
# scp_username=tcs
17+
# scp_password=<<password>
18+
# scp_keyfile=<<full path fo scp key: d:\\path\\to\\key.file>>
19+
# scp_remoteserver=174.129.113.55
20+
# scp_remotejboss=/home/tcs/jboss-4.0.2
21+
22+
## uncomment the line bellow to allow update through ant
23+
# build.svn.update=yes
24+
25+
# Do not stop on errors duing DB build.
26+
stoponerror=false
27+
28+
29+
##################################################################################
30+
# The online_review_home is the directory where the development distribution for #
31+
# Online Review application is checked to #
32+
##################################################################################
33+
online_review_home=/root/online_review
34+
# SVN credentials

.deploy/circleci/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/bash
2+
set -e
3+
4+
mv .deploy/circleci/build.properties .
5+
mv .deploy/circleci/token.properties .
6+
#add svn user name and password to build.properies
7+
echo "build.svn.username=$SVN_USERNAME" >> build.properties
8+
echo "build.svn.password=$SVN_PASSWORD" >> build.properties
9+
ant checkout-components
10+
ant first_deploy deploy
11+

.deploy/circleci/token.properties

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# TopCoder Software Component Development Environment
2+
3+
## Used by CatalogBean.properties and Project_Phase_Template_Config.xml
4+
@JBOSS_HOME@=/root/jboss-4.0.2
5+
@jdk_home@=/opt/jdk1.7.0_79
6+
7+
## Used by tcs_informix-ds.xml
8+
@database.server@=db
9+
@database.port@=2021
10+
@database.username@=informix
11+
@database.password@=1nf0rm1x
12+
@database.INFORMIXSERVER@=informixoltp_tcp
13+
@database.locale@=en_us.utf8
14+
15+
# @context.security.url@ - URL for JNDI lookup
16+
@context.security.url@=localhost:11199
17+
18+
## Used by cache.properties
19+
@cache.host_url@=env.topcoder.com:2199
20+
21+
## Used by EmailEngine.xml
22+
@emailengine_smtp_host@=127.0.0.1
23+
@emailengine_smtp_port@=25
24+
@emailengine_smtp_user@=
25+
@emailengine_smtp_password@=
26+
@notificationEmailFromAddress@=do_not_reply@topcoder.com
27+
28+
## Used by ApplicationServer.properties
29+
@SERVER_NAME@=tcs.cloud.topcoder.com
30+
@STUDIO_SERVER_NAME@=studio.cloud.topcoder.com
31+
@OPENAIM_SERVER_NAME@=tc.cloud.topcoder.com/openaim
32+
@TRUVEO_SERVER_NAME@=tc.cloud.topcoder.com/truveo
33+
@AOLICQ_SERVER_NAME@=63.118.154.179
34+
@WINFORMULA_SERVER_NAME@=tc.cloud.topcoder.com/winformula
35+
@CSF_SERVER_NAME@=csf.dev.topcoder.com
36+
@CORP_SERVER_NAME@=tc.cloud.topcoder.com/corp
37+
@SOFTWARE_SERVER_NAME@=tcs.cloud.topcoder.com
38+
@FORUMS_SERVER_NAME@=forums.dev.topcoder.com
39+
@HOST_URL@=localhost:11199
40+
@FORUMS_HOST_URL@=jnp://localhost:1199
41+
@CONTEST_HOST_URL@=63.118.154.180:10099
42+
@SECURITY_PROVIDER_URL@=localhost:1199
43+
@TCS_APP_SERVER_URL@=localhost:11199
44+
@FILE_CONVERSION_PROVIDER_URL@=172.16.210.53:1099
45+
@JMS_HOST_URL@=jnp://localhost:1699
46+
@DISTRIBUTED_UI_SERVER_NAME@ = localhost:8080
47+
@OR_WEBSERVICES_SERVER_NAME@ = 63.118.154.186:8080
48+
@WIKI_SERVER_NAME@ = tc.cloud.topcoder.com/wiki
49+
@USER_SERVICES_HOST_URL@=jnp://localhost:1199
50+
@PACTS_HOST_URL@=localhost:1199
51+
@STUDIO_SERVICES_PROVIDER_URL@=jnp://localhost:1399
52+
@STUDIO_SERVICES_USERNAME@=user
53+
@STUDIO_SERVICES_PASSWORD@=password
54+
@STUDIO_SERVICES_PROTOCOL@=cockpitDomain
55+
56+
# do not change this
57+
@COCKPIT_PROVIDER_URL@=jnp://184.73.115.186:1399
58+
59+
@SSO_COOKIE_KEY@=tcsso_vm
60+
@SSO_HASH_SECRET@=GKDKJF80dbdc541fe829898aa01d9e30118bab5d6b9fe94fd052a40069385f5628
61+
@SSO_DOMAIN@=topcoder.com
62+
@CLIENT_ID_AUTH0@ = CMaBuwSnY0Vu68PLrWatvvu3iIiGPh7t
63+
@REDIRECT_URL_AUTH0@ = /reg2/callback.action
64+
@REG_SERVER_NAME@ = tc.cloud.topcoder.com
65+
@DOMAIN_AUTH0@ = topcoder.auth0.com
66+
67+
## Used by OnlineReview.xml
68+
69+
# The authenticator used in the login process - this object must be defined in the OnlineReview.xml file too
70+
@login.authenticator@=MockXMLAuthenticator
71+
72+
# VM configuration for directories configuration
73+
@localFileUploadDir@=/root/downloads
74+
@catalogOutputDir@=/mnt/shared/temp_files
75+
@distributionToolOutputDir@=/mnt/shared/temp_files/tmp_dist
76+
@distributionScriptsBase@=/root/online_review/conf/distribution_scripts/unix
77+
@exttemplatesdir@=/root/online_review/conf/templates
78+
@adminUsers@=132456
79+
@thurgood.api.key@=
80+
@thurgood.username@=
81+
@thurgood.password@=
82+
@topcoder_api_base_url@=http://api.topcoder.com/v2
83+
@amazon_sns_arn@=
84+
@amazonSNSAccessKey@=
85+
@amazonSNSSecretKey@=
86+
@contactPMEmailFromAddress@ = applications@topcoder.com
87+
88+
@pactJNDIAddress@=jnp://localhost:1199
89+
90+
#### mockxmlauthenticator.xmlfile - when defined it is excluded from the build, comment it out to include in build for development
91+
#### Anyway - if it is included in the production build, it will do no harm
92+
# exclude.mockxmlauthenticator.xmlfile=yes, exclude me!
93+
94+
#####################################
95+
# Parameters specific to Auto Pilot #
96+
#####################################
97+
# typical VM configuration
98+
# A path to file to signal to Auto Pilot to stop the job
99+
@auto_pilot_guard_file@=stopAutoPilot.txt
100+
# A path to file to signal to Auto Pilot that there is another tool instance already running
101+
@auto_pilot_running_file@=autoPilotIsRunning.txt
102+
# A path to log file for Auto Pilot
103+
@auto_pilot_log_file@=auto_pilot.log
104+
# An interval (in seconds) between Auto Pilot job executions
105+
@auto_pilot_poll_interval@=20
106+
107+
####################################################
108+
# Parameters specific to Late Deliverables Tracker #
109+
####################################################
110+
# A path to file to signal to Late Deliverables Tracker to stop the job
111+
@late_deliverables_tracker_guard_file@=stopLateDeliverablesTracker.txt
112+
# A path to file to signal to Late Deliverables Tracker that there is another tool instance already running
113+
@late_deliverables_tracker_running_file@=lateDeliverablesTrackerIsRunning.txt
114+
# An interval (in seconds) between Late Deliverables Tracker job executions
115+
@late_deliverables_tracking_interval@=300
116+
# An interval (in seconds) between sending PM emails about unresolved late deliverables
117+
@late_deliverables_pm_notification_interval@=43200
118+
# A path to log file for Late Deliverables Tracker
119+
@late_deliverables_tracker_log_file@=late_deliverables.log
120+
121+
####################################################
122+
# Parameters specific to Review Assignment Tool #
123+
####################################################
124+
# A path to file to signal to Review Assignment tool to stop the job
125+
@review_assignment_guard_file@=stopReviewAssignment.txt
126+
# A path to file to signal to Review Assignment Tool that there is another tool instance already running
127+
@review_assignment_running_file@=reviewAssignmentIsRunning.txt
128+
# A path to log file for Review Assignment tool
129+
@review_assignment_log_file@=review_assignment.log
130+
# An interval (in seconds) between Review Assignment job executions
131+
@review_assignment_interval@=60
132+
# An ID for user account to represent the Review Assignment tool
133+
@review_assignment_operator@=132456
134+
135+
#####################
136+
# SVN configuration #
137+
#####################
138+
@svn.root@=https://coder.topcoder.com/tcs
139+
@svn.username@=OnlineReview
140+
@svn.password@=password
141+
@svn.mkdir.commit.message@=Online Review auto-commit
142+
@svn.temp.files.basedir@=/root/temp_files/temp_svn
143+
@svn.authz.file.url@=https://coder.topcoder.com/tcs/configuration/trunk/svn-permissions.txt

circle.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
machine:
2+
services:
3+
- docker
4+
5+
dependencies:
6+
pre:
7+
- pip install awsebcli
8+
9+
test:
10+
override:
11+
- docker run -e SVN_USERNAME=$SVN_USERNAME -e SVN_PASSWORD=$SVN_PASSWORD -v $PWD:/root/online_review -t appiriodevops/online-review:circleci-build sh -c ".deploy/circleci/build.sh"

0 commit comments

Comments
 (0)