Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
per-project travis.yml file; instructions to differentiate
- Loading branch information
1 parent
952a33d
commit cdb0e70
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |