-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2427 from LD4P/build_tweaks
Build tweaks
- Loading branch information
Showing
6 changed files
with
416 additions
and
236 deletions.
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
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 |
---|---|---|
@@ -1,26 +1,6 @@ | ||
FROM cypress/browsers:node14.7.0-chrome84 | ||
FROM cypress/included:4.12.1 | ||
|
||
# Rolling our own instead of using cypress-provided images because want to use | ||
# additional libraries. | ||
COPY cypress /cypress | ||
COPY cypress.json cypress.json | ||
|
||
# This is the directory the user in the circleci/node image can write to | ||
# WORKDIR /home/circleci | ||
|
||
# Everything that isn't in .dockerignore ships | ||
COPY . . | ||
|
||
RUN mkdir node_modules | ||
|
||
# Allow circleci user to run npm build | ||
#USER root | ||
#RUN /bin/bash -c 'chown -R circleci node_modules' | ||
|
||
# Build and run app using non-privileged account | ||
#USER circleci | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
RUN npm run cypress-verify | ||
|
||
ENTRYPOINT ["npm", "run", "cypress-run"] | ||
ENTRYPOINT ["cypress", "run", "--headless", "-b", "chrome"] |
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
Oops, something went wrong.