Skip to content

Commit

Permalink
per-project travis.yml file; instructions to differentiate
Browse files Browse the repository at this point in the history
  • Loading branch information
awatson1978 committed Jan 27, 2015
1 parent 952a33d commit cdb0e70
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
@@ -1,3 +1,8 @@
# this travis.yml file is for the entire velocity-examples repository
# other frameworks should feel free to add items to the before_install script
# and we may want to clone the ./run_nightwatch.sh script and add it back
# into the root of the velocity-examples repository for meta-testing

language: node_js

node_js:
Expand Down
38 changes: 38 additions & 0 deletions leaderboard-nightwatch/.travis.yml
@@ -0,0 +1,38 @@
# this travis.yml file is for the leaderboard-nightwatch example, when run standalone
language: node_js

node_js:
- "0.10"

services:
- mongodb

cache:
directories:
- .meteor/local/build/programs/server/assets/packages
- .meteor
# - node_modules
# - webapp/node_modules

before_install:
# set up the node_modules dir, so we know where it is
- "mkdir -p node_modules &"
# install nightwatch, so we know where it is
- "npm install nightwatch"
# fire up xvfb on port :99.0
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# set the xvfb screen size to 1280x1024x16
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
# install meteor
- "curl https://install.meteor.com | /bin/sh"
# setup Meteor app
- "cd webapp"
# Optionally we can update all our dependencies here
#- "meteor update"
- "meteor reset"
- "meteor -p 3000 &"
# give Meteor some time to download packages, init data, and to start
- "sleep 50"

script: ./run_nightwatch.sh

0 comments on commit cdb0e70

Please sign in to comment.