Skip to content

Commit 08e703c

Browse files
committed
Test installing via a GitHub URL
1 parent 43cda3b commit 08e703c

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

tools/ci/appveyor/script

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ heartbeat_interval='30s'
3636
# Declare a variable for storing the heartbeat process id:
3737
heartbeat_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
175181
test_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

0 commit comments

Comments
 (0)