-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
68 lines (47 loc) · 1.33 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# this travis.yml file is for the leaderboard-nightwatch example, when run standalone
language: node_js
node_js:
- "4.1"
services:
- mongodb
sudo: false
env:
global:
- CXX=g++-4.8
- TRAVIS=true
- DISPLAY=:99.0
- CONFIG_PREFIX=`npm config get prefix`
matrix:
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
cache:
directories:
#- node_modules
#- ~/.meteor
#- ~/.meteor/local/build/programs/server/assets/packages
before_install:
# set up the node_modules dir, so we know where it is
- "mkdir -p node_modules &"
# install starrynight, so we can launch nightwatch and selenium
- "npm install -g starrynight"
# fire up xvfb on port :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 seconds after installing
- "sleep 5"
- "cd webapp"
- "starrynight fetch"
- "sleep 20"
- "starrynight generate --autoconfig"
- "sleep 5"
- "~/.meteor/meteor &"
- "sleep 90"
- "ls -la ~/.meteor/packages"
script: "starrynight run-tests --framework nightwatch --env travis"