summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 051c9811f51b5c36008662e07d6c0ed8493bbad7 (plain)
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
env:
  - DB=postgresql
  - DB=mysql
before_install:
  - sudo apt-get install libicu-dev -y
  - wget -P /tmp http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-i686.tar.bz2
  - tar -xf  /tmp/phantomjs-1.7.0-linux-i686.tar.bz2 -C /tmp/
  - PATH=$PATH:/tmp/phantomjs-1.7.0-linux-i686/bin
  - gem install charlock_holmes -v="0.6.9"
branches:
  only:
    - 'master'
rvm:
  - 1.9.3
services:
  - mysql
  - postgresql
before_script:
  - "cp config/database.yml.$DB config/database.yml"
  - "cp config/gitlab.yml.example config/gitlab.yml"
  - "bundle exec rake db:create RAILS_ENV=test"
  - "bundle exec rake db:migrate RAILS_ENV=test"
  - "bundle exec rake db:seed_fu RAILS_ENV=test"
  - "sh -e /etc/init.d/xvfb start"
script: "bundle exec rake travis --trace"