Skip to content

Commit f1625b9

Browse files
authored
Merge branch 'master' into hotfix/new-flow-caas
2 parents 00a3a7a + 7b018e4 commit f1625b9

File tree

137 files changed

+5340
-1722
lines changed

Some content is hidden

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

137 files changed

+5340
-1722
lines changed

.build-info

Lines changed: 0 additions & 1 deletion
This file was deleted.

.circleci/config.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
steps:
77
- checkout
88
- restore_cache:
9-
key: test-node-modules-{{ checksum "package-lock.json" }}
9+
key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }}
1010
- run: npm install
1111
- save_cache:
12-
key: test-node-modules-{{ checksum "package-lock.json" }}
12+
key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }}
1313
paths:
1414
- node_modules
1515
- run: npm run lint
@@ -29,6 +29,15 @@ jobs:
2929
- attach_workspace:
3030
at: ./workspace
3131
- run: ./deploy.sh DEV no-cache
32+
# deploy to test02
33+
deployTest02:
34+
docker:
35+
- image: cibuilds/aws
36+
steps:
37+
- checkout
38+
- attach_workspace:
39+
at: ./workspace
40+
- run: ./deploy.sh TEST02 no-cache
3241

3342
deployProd:
3443
docker:
@@ -39,6 +48,15 @@ jobs:
3948
at: ./workspace
4049
- run: ./deploy.sh PROD
4150

51+
deployDiscourseFree:
52+
docker:
53+
- image: cibuilds/aws
54+
steps:
55+
- checkout
56+
- attach_workspace:
57+
at: ./workspace
58+
- run: ./deploy.sh DISCOURSE
59+
4260
workflows:
4361
version: 2
4462
build:
@@ -50,10 +68,21 @@ workflows:
5068
filters:
5169
branches:
5270
only: dev
71+
- deployTest02:
72+
requires:
73+
- test
74+
filters:
75+
branches:
76+
only: "feature/discourse-migration"
5377
- deployProd:
5478
requires:
5579
- test
5680
filters:
5781
branches:
5882
only: master
59-
83+
- deployDiscourseFree:
84+
requires:
85+
- test
86+
filters:
87+
branches:
88+
only: master-discourse-free

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ bower_components
55
build
66
dist
77
npm-debug.log
8-
.history
8+
.history
9+
.build-info

config/constants/dev.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ module.exports = {
1212
AUTH0_CLIENT_ID : process.env.AUTH0_CLIENT_ID_DEV,
1313
domain : 'topcoder-dev.com',
1414
DOMAIN : 'topcoder-dev.com',
15-
CONNECT_MESSAGE_API_URL: process.env.CONNECT_MESSAGE_API_URL,
1615
ENV : 'DEV',
1716

1817
PROJECTS_API_URL : 'https://api.topcoder-dev.com',
@@ -44,5 +43,7 @@ module.exports = {
4443
IBM_COGNITIVE_PROGRAM_ID : 3449,
4544
HEAP_ANALYTICS_APP_ID : '4153837120',
4645

47-
TC_NOTIFICATION_URL: 'https://api.topcoder-dev.com/v5/notifications'
46+
TC_NOTIFICATION_URL: 'https://api.topcoder-dev.com/v5/notifications',
47+
CONNECT_MESSAGE_API_URL: 'https://api.topcoder-dev.com/v5',
48+
TC_SYSTEM_USERID: process.env.DEV_TC_SYSTEM_USERID
4849
}

config/constants/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module.exports = (() => {
22
const branch = process.env.CIRCLE_BRANCH || 'dev'
33

4+
if(branch === 'master-discourse-free') {
5+
return require('./master')
6+
}
7+
48
// for security reason don't let to require any arbitrary file defined in process.env
59
if (['master', 'qa'].indexOf(branch) < 0) {
610
return require('./dev')

config/constants/master.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ module.exports = {
4343
IBM_COGNITIVE_PROGRAM_ID : 3449,
4444
HEAP_ANALYTICS_APP_ID : '638908330',
4545

46-
TC_NOTIFICATION_URL: 'https://api.topcoder.com/v5/notifications'
46+
TC_NOTIFICATION_URL: 'https://api.topcoder.com/v5/notifications',
47+
CONNECT_MESSAGE_API_URL: 'https://api.topcoder.com/v5',
48+
TC_SYSTEM_USERID: process.env.PROD_TC_SYSTEM_USERID
4749
}

config/constants/qa.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ module.exports = {
4242
IBM_COGNITIVE_PROGRAM_ID : 3449,
4343
HEAP_ANALYTICS_APP_ID : '4153837120',
4444

45-
TC_NOTIFICATION_URL: 'https://api.topcoder-dev.com/v5/notifications'
45+
TC_NOTIFICATION_URL: 'https://api.topcoder-dev.com/v5/notifications',
46+
CONNECT_MESSAGE_API_URL: 'https://api.topcoder-qa.com/v5',
47+
TC_SYSTEM_USERID: process.env.QA_TC_SYSTEM_USERID
4648
}

0 commit comments

Comments
 (0)