language: node_js
node_js:
  - "0.8"
  - "0.10"
  - "0.11"
before_install:
  # Workaround for a permissions issue with Travis virtual machine images
  # that breaks Python's multiprocessing:
  # https://github.com/travis-ci/travis-cookbooks/issues/155
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm
  - npm i -g npm
  - sudo apt-get install libicu-dev prosody luarocks
  - sudo luarocks install luabitop
  - sudo cp node_modules/node-xmpp-client/test/resources/prosody.cfg.lua /etc/prosody/prosody.cfg.lua
  - sudo cp node_modules/node-xmpp-client/test/resources/mod_websocket.lua /usr/lib/prosody/modules/
  - sudo service prosody stop

language: node_js
node_js:
  - "0.8"
  - "0.10"
  - "0.11"
before_install:
  # Workaround for a permissions issue with Travis virtual machine images
  # that breaks Python's multiprocessing:
  # https://github.com/travis-ci/travis-cookbooks/issues/155
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm
  - npm i -g npm
  - sudo apt-get install libicu-dev prosody luarocks
  - sudo luarocks install luabitop
before_script:
  - sudo cp node_modules/node-xmpp-client/test/resources/prosody.cfg.lua /etc/prosody/prosody.cfg.lua
  - sudo cp node_modules/node-xmpp-client/test/resources/mod_websocket.lua /usr/lib/prosody/modules/
  - sudo service prosody stop

Move config setup to 'before_script'
Move config setup to 'before_script'
