Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
E2E - Integration Tests
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
E2E - Integration Tests
Commits
ae469a69
Commit
ae469a69
authored
17 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): add gitlab ci file
parent
276224d5
master
No related merge requests found
Pipeline
#77285879
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
.gitlab-ci.yml
.gitlab-ci.yml
+57
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
ae469a69
services
:
-
docker:dind
stages
:
-
test:e2e
variables
:
CYPRESS_INSTALL_BINARY
:
3.4.1
npm_config_cache
:
"
$CI_PROJECT_DIR/.npm"
CYPRESS_CACHE_FOLDER
:
"
$CI_PROJECT_DIR/cache/Cypress"
cache
:
paths
:
-
.npm
-
node_modules
-
cache/Cypress
e2e:base:
image
:
cypress/base:10
stage
:
test:e2e
script
:
-
npm ci
-
>
if [ "$BRANCH_NAME" == "master" ]; then
export E2E_DOMAIN=https://www.minds.com
else
export E2E_DOMAIN=https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN
fi
-
export CYPRESS_baseUrl=$E2E_DOMAIN
-
echo "E2E tests for $BRANCH_NAME running against $E2E_DOMAIN with user $CYPRESS_username"
-
$(npm bin)/cypress run --record --key $CYPRESS_RECORD_ID --config CYPRESS_baseUrl=$E2E_DOMAIN
artifacts
:
when
:
always
paths
:
-
cypress/screenshots
-
cypress/videos
allow_failure
:
true
#manual inspection in case of timeouts
e2e:chrome:
image
:
cypress/browsers:chrome67
stage
:
test:e2e
script
:
-
npm ci
-
>
if [ "$BRANCH_NAME" == "master" ]; then
export E2E_DOMAIN=https://www.minds.com
else
export E2E_DOMAIN=https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN
fi
-
export CYPRESS_baseUrl=$E2E_DOMAIN
-
echo "E2E tests for $BRANCH_NAME running against $E2E_DOMAIN with user $CYPRESS_username"
-
$(npm bin)/cypress run --browser chrome --record --key $CYPRESS_RECORD_ID --config CYPRESS_baseUrl=$E2E_DOMAIN
artifacts
:
when
:
always
paths
:
-
cypress/screenshots
allow_failure
:
true
#manual inspection in case of timeouts
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment