-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Codeship Pro files * set name for steps * commands * run single spec for now * just run all tests * copy Cypress folder and add .dockerignore * copy app folder * copy codeship pro basic setup
- Loading branch information
Showing
10 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This Docker file is for building this project on Codeship Pro | ||
# https://documentation.codeship.com/pro/languages-frameworks/nodejs/ | ||
|
||
# use Cypress provided image with all dependencies included | ||
FROM cypress/base:10 | ||
RUN node --version | ||
RUN npm --version | ||
WORKDIR /home/node/app | ||
# copy our test application | ||
COPY package.json package-lock.json ./ | ||
COPY app ./app | ||
# copy Cypress tests | ||
COPY cypress.json cypress ./ | ||
COPY cypress ./cypress | ||
|
||
# avoid many lines of progress bars during install | ||
# https://github.com/cypress-io/cypress/issues/1243 | ||
ENV CI=1 | ||
|
||
# install NPM dependencies and Cypress binary | ||
RUN npm ci | ||
# check if the binary was installed successfully | ||
RUN $(npm bin)/cypress verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This Docker file is for building this project on Codeship Pro | ||
# https://documentation.codeship.com/pro/languages-frameworks/nodejs/ | ||
|
||
# use Cypress provided image with all dependencies included | ||
FROM cypress/base:10 | ||
RUN node --version | ||
RUN npm --version | ||
WORKDIR /home/node/app | ||
# copy our test application | ||
COPY package.json package-lock.json ./ | ||
COPY app ./app | ||
# copy Cypress tests | ||
COPY cypress.json cypress ./ | ||
COPY cypress ./cypress | ||
|
||
# avoid many lines of progress bars during install | ||
# https://github.com/cypress-io/cypress/issues/1243 | ||
ENV CI=1 | ||
|
||
# install NPM dependencies and Cypress binary | ||
RUN npm ci | ||
# check if the binary was installed successfully | ||
RUN $(npm bin)/cypress verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This folder has 3 files necessary to configure Codeship Pro to execute Cypress end-to-end tests. | ||
|
||
- [Dockerfile](Dockerfile) | ||
- [codeship-services.yml](codeship-services.yml) | ||
- [codeship-steps.yml](codeship-steps.yml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cypress-codeship-test: | ||
build: | ||
image: cypress/cypress_codeship_test | ||
dockerfile: Dockerfile | ||
# if we wanted to pass private environment variables like CYPRESS_RECORD_KEY | ||
# we would need to include encrypted env file | ||
# see instructions https://documentation.codeship.com/pro/builds-and-configuration/environment-variables/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# starts server and runs all tests | ||
- name: "Run E2E tests" | ||
service: cypress-codeship-test | ||
command: npm run test:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cypress-codeship-test: | ||
build: | ||
image: cypress/cypress_codeship_test | ||
dockerfile: Dockerfile | ||
# if we wanted to pass private environment variables like CYPRESS_RECORD_KEY | ||
# we would need to include encrypted env file | ||
# see instructions https://documentation.codeship.com/pro/builds-and-configuration/environment-variables/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# starts server and runs all tests | ||
- name: "Run E2E tests" | ||
service: cypress-codeship-test | ||
command: npm run test:ci |