-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
39 lines (35 loc) · 1.15 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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"
# give meteor a few milliseconds after installing
- "sleep 5"
# 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 60"
script: ./run_nightwatch.sh