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

Skip to content

Commit b2745c1

Browse files
committed
Unignore package-lock.json and revert after npm install instead
1 parent 3e9a2ce commit b2745c1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
package-lock.json
21
node_modules
32
!node_modules/mocha/mocha.css
43
!node_modules/mocha/mocha.js

.travis-setup.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ uname -a
2626
cat /etc/lsb-release
2727

2828
npm install
29+
# npm may update the package-lock.json. Revert this to avoid failing grunt-checkrepo.
30+
git checkout HEAD package-lock.json
31+
2932
npm install -g grunt-cli
3033

3134
sudo apt-get update --fix-missing
@@ -62,19 +65,19 @@ Chrome)
6265
sudo dpkg --install $CHROME || sudo apt-get -f install
6366
which google-chrome
6467
ls -l `which google-chrome`
65-
68+
6669
if [ -f /opt/google/chrome/chrome-sandbox ]; then
6770
export CHROME_SANDBOX=/opt/google/chrome/chrome-sandbox
6871
else
6972
export CHROME_SANDBOX=$(ls /opt/google/chrome*/chrome-sandbox)
7073
fi
71-
74+
7275
# Download a custom chrome-sandbox which works inside OpenVC containers (used on travis).
7376
sudo rm -f $CHROME_SANDBOX
7477
sudo wget https://googledrive.com/host/0B5VlNZ_Rvdw6NTJoZDBSVy1ZdkE -O $CHROME_SANDBOX
7578
sudo chown root:root $CHROME_SANDBOX; sudo chmod 4755 $CHROME_SANDBOX
7679
sudo md5sum $CHROME_SANDBOX
77-
80+
7881
google-chrome --version
7982
;;
8083

0 commit comments

Comments
 (0)