Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5531cb5

Browse files
author
Antonio Scandurra
committed
Use npm install in script/cibuild
1 parent 8ce25aa commit 5531cb5

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

script/cibuild

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -46,37 +46,14 @@ fi
4646

4747

4848
echo "Using Atom version:"
49-
"$ATOM_SCRIPT_PATH" -v
50-
echo "Using APM version:"
51-
"$APM_SCRIPT_PATH" -v
49+
"$ATOM_SCRIPT_PATH" --version
50+
echo "Using apm version:"
51+
"$APM_SCRIPT_PATH" --version
52+
echo "Using npm version:"
53+
npm --version
5254

5355
echo "Downloading package dependencies..."
54-
"$APM_SCRIPT_PATH" rebuild-module-cache
55-
"$APM_SCRIPT_PATH" clean
56-
"$APM_SCRIPT_PATH" install
57-
"$APM_SCRIPT_PATH" install
58-
59-
TEST_PACKAGES="${APM_TEST_PACKAGES:=none}"
60-
61-
if [ "$TEST_PACKAGES" != "none" ]; then
62-
echo "Installing atom package dependencies..."
63-
for pack in $TEST_PACKAGES ; do
64-
"$APM_SCRIPT_PATH" install $pack
65-
done
66-
fi
67-
68-
# if [ -f ./node_modules/.bin/eslint ]; then
69-
# if [ -d ./lib ]; then
70-
# echo "Linting package..."
71-
# ./node_modules/.bin/eslint lib
72-
# rc=$?; if [ $rc -ne 0 ]; then exit $rc; fi
73-
# fi
74-
# if [ -d ./spec ]; then
75-
# echo "Linting package specs..."
76-
# ./node_modules/.bin/eslint spec
77-
# rc=$?; if [ $rc -ne 0 ]; then exit $rc; fi
78-
# fi
79-
# fi
56+
npm install
8057

8158
echo "Running specs..."
8259
"$ATOM_SCRIPT_PATH" --test test

0 commit comments

Comments
 (0)