Skip to content

Commit 3099419

Browse files
Merge pull request #292 from topcoder-platform/circle-ci-setup-v7
TCA-408 - Circle ci setup v7
2 parents 0ea5ece + efe4e01 commit 3099419

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

.circleci/config.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ deploy_defaults: &deploy_defaults
88
docker:
99
- image: cimg/python:3.10.2
1010

11+
test_defaults: &test_defaults
12+
docker:
13+
- image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
14+
1115
install_build_dependency: &install_build_dependency
1216
name: Installation of build and deployment dependencies.
1317
command: |
1418
apt update
1519
apt install jq -y
1620
apt install python3-pip -y
17-
apt install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb -y
1821
pip3 install awscli --upgrade
1922
2023
install_dependency: &install_dependency
@@ -37,7 +40,6 @@ save_cache_settings: &save_cache_settings
3740
key: connect-node-modules-{{ checksum "yarn.lock" }}
3841
paths:
3942
- node_modules
40-
- /root/.cache/Cypress
4143

4244
running_yarn_tslint: &running_yarn_tslint
4345
name: Running Yarn tslint
@@ -49,6 +51,12 @@ running_yarn_build: &running_yarn_build
4951
name: Running Yarn Build
5052
command: |
5153
source buildenvvar
54+
yarn install
55+
yarn build
56+
57+
running_yarn_test: &running_yarn_test
58+
name: Running Yarn Test Build
59+
command: |
5260
yarn install
5361
yarn cypress install
5462
yarn build
@@ -83,6 +91,20 @@ build_steps: &build_steps
8391
- run: *install_deploysuite
8492
- run: *build_configuration_fetch
8593
- run: *running_yarn_build
94+
- persist_to_workspace: *workspace_persist
95+
96+
test_steps: &test_steps
97+
# Initialization.
98+
- checkout
99+
- setup_remote_docker
100+
- restore_cache:
101+
key: test-node-modules-{{ checksum "yarn.lock" }}
102+
- run: *running_yarn_test
103+
- save_cache:
104+
key: test-node-modules-{{ checksum "yarn.lock" }}
105+
paths:
106+
- node_modules
107+
- /root/.cache/Cypress
86108
- store_test_results:
87109
path: cypress/test-report
88110
- store_artifacts:
@@ -91,7 +113,6 @@ build_steps: &build_steps
91113
path: cypress/videos
92114
- store_artifacts:
93115
path: cypress/screenshots
94-
- persist_to_workspace: *workspace_persist
95116

96117
deploy_steps: &deploy_steps
97118
- checkout
@@ -139,6 +160,14 @@ jobs:
139160
LOGICAL_ENV: "prod"
140161
APPNAME: "platform-ui-mvp"
141162
steps: *build_steps
163+
164+
test-dev:
165+
<<: *test_defaults
166+
environment:
167+
DEPLOY_ENV: "DEV"
168+
LOGICAL_ENV: "dev"
169+
APPNAME: "platform-ui-mvp"
170+
steps: *test_steps
142171

143172
# Just tests commited code.
144173
deployDev:
@@ -208,3 +237,6 @@ workflows:
208237
branches:
209238
only:
210239
- master
240+
241+
- test-dev:
242+
context : org-global

cypress/e2e/home/home.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ describe('Landing Page', () => {
22

33
beforeEach(() => cy.visit('/'))
44

5-
// TCA-336 temporarily skip this bc the site isn't loading
6-
it.skip('loads landing page should be successfully', () => {
5+
it('loads landing page should be successfully', () => {
76
cy.get('[data-id="root"]').should('be.visible')
87
})
98

0 commit comments

Comments
 (0)