Skip to content

Commit

Permalink
ci: TOP-1390 on dev env
Browse files Browse the repository at this point in the history
kkartunov committed May 20, 2024
1 parent 7822683 commit b9cacbf
Showing 1 changed file with 41 additions and 40 deletions.
81 changes: 41 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
version: 2.1
parameters:
run_basedeployment:
default: true
type: boolean
run_smoketesting:
default: false
type: boolean
run_performancetesting:
default: false
type: boolean
run_basedeployment:
default: true
type: boolean
run_smoketesting:
default: false
type: boolean
run_performancetesting:
default: false
type: boolean

defaults: &defaults
docker:
- image: docker:20.10.21-git
environment:
ENV: $BASH_ENV
docker:
- image: docker:20.10.21-git
environment:
ENV: $BASH_ENV

install_dependency: &install_dependency
name: Installation of build and deployment dependencies.
command: |
apk update
apk add --no-cache bash openssl curl
apk upgrade
apk add --no-cache jq py-pip sudo
sudo pip install awscli --upgrade
name: Installation of build and deployment dependencies.
command: |
apk update
apk add --no-cache bash openssl curl
apk upgrade
apk add --no-cache jq py-pip sudo
sudo pip install awscli --upgrade
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
command: |
git clone --branch v1.4.14 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
name: Installation of install_deploysuite.
command: |
git clone --branch v1.4.14 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
restore_cache_settings_for_build: &restore_cache_settings_for_build
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}

@@ -41,11 +41,11 @@ save_cache_settings: &save_cache_settings
- node_modules

build_docker_image: &build_docker_image
name: Build of Docker image
command: |
source buildenvvar
./build.sh
no_output_timeout: 20m
name: Build of Docker image
command: |
source buildenvvar
./build.sh
no_output_timeout: 20m
jobs:
# Build & Deploy against development backend
"build-dev":
@@ -191,7 +191,7 @@ jobs:
# command: |
# source awsenvconf
# source buildenvvar
# ./master_deploy.sh -d ECS -e PROD -t latest -s staging_communityapp_taskvar, -i communityapp
# ./master_deploy.sh -d ECS -e PROD -t latest -s staging_communityapp_taskvar, -i communityapp
# curl --request POST \
# --url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
# --header "Circle-Token: ${CIRCLE_TOKEN}" \
@@ -232,7 +232,7 @@ jobs:
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
# Automated Smoke Testing against Staging
# Deprecate this workflow due to beta env shutdown
# Deprecate this workflow due to beta env shutdown
# https://topcoder.atlassian.net/browse/CORE-202
# Smoke-Testing-On-Staging:
# <<: *defaults
@@ -259,7 +259,7 @@ jobs:
# - store_artifacts:
# path: ./automated-smoke-test/test-results

# Automated Smoke Testing against Production
# Automated Smoke Testing against Production
Smoke-Testing-On-Production:
<<: *defaults
steps:
@@ -330,9 +330,9 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: mvn dependency:go-offline

@@ -353,11 +353,12 @@ workflows:
jobs:
# Development builds are executed on "new-develop" branch only.
- "build-dev":
context : org-global
context: org-global
filters:
branches:
only:
- develop
- TOP-1390
# This is alternate dev env for parallel testing
# Deprecate this workflow due to beta env shutdown
# https://topcoder.atlassian.net/browse/CORE-251
@@ -402,7 +403,7 @@ workflows:
# deployed on the production
# master branch.
- "build-prod":
context : org-global
context: org-global
filters: &filters-prod
branches:
only:
@@ -422,7 +423,7 @@ workflows:
- Hold [Smoke-Testing]:
type: approval
- Smoke-Testing-On-Production:
context : org-global
context: org-global
requires:
- Hold [Smoke-Testing]
filters:

0 comments on commit b9cacbf

Please sign in to comment.