Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b36f687

Browse files
committed
QA changes
1 parent 0ae7909 commit b36f687

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

.circleci/config.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install_dependency: &install_dependency
1111
install_deploysuite: &install_deploysuite
1212
name: Installation of install_deploysuite.
1313
command: |
14-
git clone --branch v1.4.2 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
14+
git clone --branch v1.4.14 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
1515
cp ./../buildscript/master_deploy.sh .
1616
cp ./../buildscript/buildenv.sh .
1717
cp ./../buildscript/awsconfiguration.sh .
@@ -59,6 +59,14 @@ jobs:
5959
APPNAME: "micro-frontends-taas-admin-app"
6060
steps: *builddeploy_steps
6161

62+
"build-qa":
63+
<<: *defaults
64+
environment:
65+
DEPLOY_ENV: "QA"
66+
LOGICAL_ENV: "qa"
67+
APPNAME: "micro-frontends-taas-admin-app"
68+
steps: *builddeploy_steps
69+
6270
"build-prod":
6371
<<: *defaults
6472
environment:
@@ -79,6 +87,13 @@ workflows:
7987
only:
8088
- dev
8189

90+
- "build-qa":
91+
context: org-global
92+
filters:
93+
branches:
94+
only:
95+
- qa
96+
8297
# Production builds are exectuted only on tagged commits to the
8398
# master branch.
8499
- "build-prod":

config/index.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
/* global process */
22

33
module.exports = (() => {
4-
const appEnv = process.env.APPENV === "prod" ? "prod" : "dev";
5-
return require(`./${appEnv}`);
4+
const appEnv = process.env.APPENV || "dev";
5+
6+
console.log(`APPENV: "${appEnv}"`);
7+
8+
// for security reason don't let to require any arbitrary file defined in process.env
9+
if (["prod", "dev", "qa"].indexOf(appEnv) < 0) {
10+
return require("./dev");
11+
}
12+
13+
return require("./" + appEnv);
614
})();
15+

config/qa.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
API: {
3+
V3: "https://api.topcoder-qa.com/v3",
4+
V5: "https://api.topcoder-qa.com/v5",
5+
},
6+
PLATFORM_WEBSITE_URL: "https://platform.topcoder-qa.com",
7+
TOPCODER_WEBSITE_URL: "https://www.topcoder-qa.com",
8+
};

0 commit comments

Comments
 (0)