File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ heartbeat_interval='30s'
3636# Declare a variable for storing the heartbeat process id:
3737heartbeat_pid=" "
3838
39+ # Define the project name:
40+ project_name=' @stdlib/stdlib'
41+
42+ # Define the project GitHub URL:
43+ project_github_url=' git://github.com/stdlib-js/stdlib.git'
44+
3945
4046# FUNCTIONS #
4147
@@ -174,12 +180,21 @@ run_examples() {
174180# $1 - log file
175181test_npm_install () {
176182 echo ' Testing npm install...' >&2
177- make TEST_NPM_INSTALL_PKG=' @stdlib/stdlib ' test-npm-install >> " $1 " 2>&1
183+ make TEST_NPM_INSTALL_PKG=" ${project_name} " test-npm-install >> " $1 " 2>&1
178184 if [[ " $? " -ne 0 ]]; then
179185 echo ' Installation failed.' >&2
180186 return 1
181187 fi
182188 echo ' Successfully installed.' >&2
189+
190+ echo ' Testing npm install (via GitHub)...' >&2
191+ make TEST_NPM_INSTALL_GITHUB_URL=" ${project_github_url} " test-npm-install-github >> " $1 " 2>&1
192+ if [[ " $? " -ne 0 ]]; then
193+ echo ' Installation (via GitHub) failed.' >&2
194+ return 1
195+ fi
196+ echo ' Successfully installed (via GitHub).' >&2
197+
183198 return 0
184199}
185200
You can’t perform that action at this time.
0 commit comments