Skip to content

Commit

Permalink
Update to latest project shell libs
Browse files Browse the repository at this point in the history
Update to latest project shell libs so we are working with the latest.

skip_ticket_id_check

<!-- ps-id: 1b7abec8-8efd-4ae0-acc5-e687399c9def -->
  • Loading branch information
drewdeponte committed Feb 28, 2023
1 parent 900eaa9 commit b8a49d4
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ uncommitted_files_count=$(get_uncommitted_files_count)
exit_nonzero $? "failed to check for uncommitted changes" 15
exit_nonzero $uncommitted_files_count "Uncommitted changes exist" 16

echo "\n\nRunning npm tsc --noEmit..."
time npx tsc --noEmit
exit_nonzero $? "Command 'npx tsc --noEmit'" 20
echo "\n\nRunning npm run build:noemit..."
time npm run build:noemit
exit_nonzero $? "Command 'npm run build:noemit'" 20

echo "\n\nRunning npm run lint:dry..."
time npm run lint:dry
exit_nonzero $? "Command 'npm run lint:dry'" 30
echo "\n\nRunning npm run lint..."
time npm run lint
exit_nonzero $? "Command 'npm run lint'" 30

echo "\n\nRunning npm run build..."
time npm run build
Expand Down
21 changes: 21 additions & 0 deletions .git-ps/vendor/libs/hooks/sample_ts_library_integrate_post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env zsh


hooks_path=${0:a:h}
dot_git_ps_path=$(dirname $hooks_path)

source "$dot_git_ps_path/vendor/libs/messaging.zsh"
source "$dot_git_ps_path/vendor/libs/general.zsh"
source "$dot_git_ps_path/vendor/libs/lcov_test_coverage.zsh"
source "$dot_git_ps_path/vendor/libs/git_backed_test_coverage.zsh"

integrated_commit_sha=$1

current_test_coverage=$(get_current_lcov_test_coverage)
exit_nonzero $? "Failed to get current test coverage: ${current_test_coverage}" 20

echo "Storing & pushing ${current_test_coverage} as the test coverage for ${integrated_commit_sha}"
store_output=$(store_and_push_test_coverage $current_test_coverage $integrated_commit_sha "origin")
exit_nonzero $? "Failed to store and push test coverage: ${store_output}" 30

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ uncommitted_files_count=$(get_uncommitted_files_count)
exit_nonzero $? "failed to check for uncommitted changes" 15
exit_nonzero $uncommitted_files_count "Uncommitted changes exist" 16

echo "\n\nRunning npm tsc --noEmit..."
time npx tsc --noEmit
exit_nonzero $? "Command 'npx tsc --noEmit'" 20
echo "\n\nRunning npm run build:noemit..."
time npm run build:noemit
exit_nonzero $? "Command 'npm run build:noemit'" 20

# echo "\n\nRunning npm run lint:dry..."
# time npm run lint:dry
# exit_nonzero $? "Command 'npm run lint:dry'" 30
echo "\n\nRunning npm run lint..."
time npm run lint
exit_nonzero $? "Command 'npm run lint'" 30

echo "\n\nRunning npm run test:cov:bail..."
time npm run test:cov:bail
Expand Down
17 changes: 17 additions & 0 deletions .git-ps/vendor/libs/hooks/sample_ts_library_isolate_post_cleanup
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env zsh

hooks_path=${0:a:h}
dot_git_ps_path=$(dirname $hooks_path)

source "$dot_git_ps_path/vendor/libs/messaging.zsh"
source "$dot_git_ps_path/vendor/libs/general.zsh"
source "$dot_git_ps_path/vendor/libs/ticket_id_verification.zsh"
source "$dot_git_ps_path/vendor/libs/git.zsh"
source "$dot_git_ps_path/vendor/libs/lcov_test_coverage.zsh"
source "$dot_git_ps_path/vendor/libs/git_backed_test_coverage.zsh"

echo "\n\nInstalling NPM Dependencies Back To Normal..."
time npm install
exit_nonzero $? "npm install failed" 10

exit 0

0 comments on commit b8a49d4

Please sign in to comment.