forked from ruby-china/homeland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 992 Bytes
/
.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
language: ruby
bundler_args: --without development
before_install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
- "export DISPLAY=:99.0"
- "export JASMINE_BROWSER=firefox"
services:
- mongodb
- redis-server
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
rvm:
- 1.9.3
- 2.0.0
- jruby-head
env: JRUBY_OPTS="-Xcext.enabled=true -Xmx512m -Xcompile.invokedynamic=false"
before_script:
- mongo ruby_china_test --eval 'db.addUser("travis", "test");'
- cp config/config.yml.default config/config.yml
- cp config/mongoid.yml.default config/mongoid.yml
- cp config/redis.yml.default config/redis.yml
- sed -i "s/SETUP_DEVELOPMENT_HOST/127.0.0.1:27017/g" config/mongoid.yml
- sed -i "s/SETUP_REDIS_HOST/127.0.0.1/g" config/redis.yml
- sed -i "s/SETUP_REDIS_PORT/6379/g" config/redis.yml
script: bundle exec rake spec jasmine:ci