Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Add a whitesource command #4

Merged
merged 1 commit into from
Jul 13, 2017
Merged

Add a whitesource command #4

merged 1 commit into from
Jul 13, 2017

Conversation

rowanmanning
Copy link
Member

No description provided.

index.mk Outdated
@if [ -z "$(WHITESOURCE_API_KEY)" ]; then \
echo "Warning: WHITESOURCE_API_KEY is not set, not running whitesource"; \
else \
npm install -g whitesource; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we install a specific version locally instead please

index.mk Outdated
echo "Warning: WHITESOURCE_API_KEY is not set, not running whitesource"; \
else \
npm install -g whitesource; \
rm -rf node_modules && npm i --production; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer required as of version 1.8.0 of whitesource :-D

echo "Warning: WHITESOURCE_API_KEY is not set, not running whitesource"; \
else \
echo '{"apiKey": "$(WHITESOURCE_API_KEY)"}' > whitesource.config.json; \
whitesource run; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If whitesource is not installed this would output an error along the lines of "command not found: whitesource".

@rowanmanning rowanmanning merged commit 7b9d7a7 into master Jul 13, 2017
@rowanmanning rowanmanning deleted the whitesource branch July 13, 2017 10:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants