This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
harold-velez
committed
Apr 17, 2020
1 parent
598337c
commit 61641d5
Showing
2 changed files
with
24 additions
and
4 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 |
---|---|---|
|
@@ -14,23 +14,38 @@ stages: | |
- npm install | ||
- echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list | ||
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | ||
- apt-get update && apt-get -y install google-chrome-stable | ||
- apt-get update && apt-get -y install google-chrome-stable && apt-get -y install jq | ||
- export CHROME_BIN='/usr/bin/google-chrome' | ||
- npm run test | ||
- npm run lint | ||
- npm run build | ||
- npx madge --circular --extensions ts --ts-config tsconfig.json src | ||
- | | ||
echo "start" | ||
ls coverage/ | ||
if [ -f coverage/summary/json-summary.json ]; then | ||
COVERAGE_SUMMARY=$(jq -r '.total' coverage/summary/json-summary.json) | ||
echo "$COVERAGE_SUMMARY " > comments.txt | ||
else | ||
echo "⚠️ **WARNING** - coverage json data not found. Add **json-summary** to .karmaTypescriptConfig.reports in **karma.conf.js** " > comments.txt | ||
fi | ||
CODEBUILD_SOURCE_VERSION_WARNING="master" | ||
if [ "$CODEBUILD_SOURCE_VERSION" = "$CODEBUILD_SOURCE_VERSION_WARNING" ]; then | ||
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.2 | ||
GITHUB_TOKEN=$ALPS_GH_TOKEN | ||
PKGNAME=$(node -e 'console.log(require("./package.json").name)') | ||
PKGVERSION=$(node -e 'console.log(require("./package.json").version)') | ||
LATEST_VERSION=$(npm show $PKGNAME version) | ||
echo "⚠️ **WARNING** - Merging this pull request will result in a publish of **$PKGNAME** to npm from version **$LATEST_VERSION** to **$PKGVERSION**" > comments.txt | ||
bin/hub api repos/alertlogic/$ALPS_REPO_NAME/issues/$ALPS_PR_NUMBER/comments --field [email protected] | ||
echo "⚠️ **WARNING** - Merging this pull request will result in a publish of **$PKGNAME** to npm from version **$LATEST_VERSION** to **$PKGVERSION**" >> comments.txt | ||
fi | ||
bin/hub api repos/alertlogic/$ALPS_REPO_NAME/issues/$ALPS_PR_NUMBER/comments --field [email protected] | ||
- echo done | ||
|
||
|