@@ -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+
5758fi
5859
5960# ===== Latest npm ==========
@@ -73,8 +74,6 @@ sudo service postgresql stop
7374# for node "gm" module
7475sudo apt-get install graphicsmagick imagemagick
7576
76- npm install
77-
7877# ==== Install latest nginx (default nginx is old, some config options won't work) =======
7978sudo apt-get install python-software-properties software-properties-common
8079sudo add-apt-repository -y ppa:nginx/stable
@@ -88,6 +87,8 @@ sudo apt-get update
8887sudo apt-get install -y mongodb-org
8988sudo /etc/init.d/mongodb restart
9089
90+ npm install
91+
9192# deploy nginx config
9293sudo 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