-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a "test" mode #30
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2bf39c4
add a "test" mode
nvdk 3bd7487
fix typo in readme
nvdk 3427bcb
add link to mocha in readme
nvdk 56aa730
use same output dir as production build so mu is ingested correctly
nvdk 6c3b75a
Update run-test.sh
nvdk eb57c4e
force mocha to exit when it thinks its done
nvdk 299031e
Merge branch 'feature-support-tests' of github.com:nvdk/mu-javascript…
nvdk 3aae95b
Add openssh to support dependencies from git repositories
madnificent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM node:14.16.1-alpine | |
|
||
LABEL maintainer="[email protected]" | ||
|
||
RUN apk update && apk upgrade && apk add --no-cache bash git openssh | ||
RUN apk update && apk upgrade && apk add --no-cache bash git jq openssh | ||
|
||
ENV MU_SPARQL_ENDPOINT 'http://database:8890/sparql' | ||
ENV MU_APPLICATION_GRAPH 'http://mu.semte.ch/application' | ||
|
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
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,14 @@ | ||
#!/bin/sh | ||
|
||
# create a copy of app, so we can modify as necessary | ||
cp -a /app /usr/src/output | ||
|
||
# add some required files from the template | ||
cp -a /usr/src/app/.babelrc.js /usr/src/app/helpers /usr/src/output/ | ||
# merge package.json files, prefering whatever is specified in the app | ||
jq -s '.[0] * .[1]' /usr/src/app/package.json /app/package.json > /usr/src/output/package.json | ||
|
||
# do things | ||
cd /usr/src/output | ||
npm install | ||
exec npm test |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really related to this PR, but reload on changed hbs files is appreciated