Skip to content

Commit c7da9f9

Browse files
committed
minor
1 parent 1d79e0f commit c7da9f9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/travis/install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
5454
scp -r [email protected]:/js/secret .
5555
sudo mv secret /js/
5656

57+
5758
fi
5859

5960
# ===== Latest npm ==========
@@ -73,8 +74,6 @@ sudo service postgresql stop
7374
# for node "gm" module
7475
sudo apt-get install graphicsmagick imagemagick
7576

76-
npm install
77-
7877
# ==== Install latest nginx (default nginx is old, some config options won't work) =======
7978
sudo apt-get install python-software-properties software-properties-common
8079
sudo add-apt-repository -y ppa:nginx/stable
@@ -88,6 +87,8 @@ sudo apt-get update
8887
sudo apt-get install -y mongodb-org
8988
sudo /etc/init.d/mongodb restart
9089

90+
npm install
91+
9192
# deploy nginx config
9293
sudo gulp config:nginx --prefix /etc/nginx --root /js/javascript-nodejs --env test --clear --harmony
9394

@@ -104,6 +105,7 @@ if [[ ! -z $TRAVIS_DEBUG ]]; then
104105
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
105106
chmod 600 ~/.ssh/authorized_keys
106107

108+
cat ~/.ssh/authorized_keys
107109
# 'GatewayPorts yes', 2222 will be open to the world on stage
108110
ssh -fnNR 2222:localhost:22 [email protected]
109111

@@ -112,6 +114,7 @@ if [[ ! -z $TRAVIS_DEBUG ]]; then
112114
# now sleep and let me SSH to travis and do the stuff manually
113115
while :
114116
do
117+
# more output so that Travis will keep the job running
115118
echo "."
116119
sleep 60
117120
done

0 commit comments

Comments
 (0)